public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/80637] [concepts] incorrect ambiguous overload
       [not found] <bug-80637-4@http.gcc.gnu.org/bugzilla/>
@ 2022-06-21 18:03 ` pinskia at gcc dot gnu.org
  2022-06-21 18:04 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-06-21 18:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80637

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 53185
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53185&action=edit
Updated full testcase

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/80637] [concepts] incorrect ambiguous overload
       [not found] <bug-80637-4@http.gcc.gnu.org/bugzilla/>
  2022-06-21 18:03 ` [Bug c++/80637] [concepts] incorrect ambiguous overload pinskia at gcc dot gnu.org
@ 2022-06-21 18:04 ` pinskia at gcc dot gnu.org
  2022-11-10 23:20 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-06-21 18:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80637

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
clang accepts this while MSVC rejects this for the same reason as GCC.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/80637] [concepts] incorrect ambiguous overload
       [not found] <bug-80637-4@http.gcc.gnu.org/bugzilla/>
  2022-06-21 18:03 ` [Bug c++/80637] [concepts] incorrect ambiguous overload pinskia at gcc dot gnu.org
  2022-06-21 18:04 ` pinskia at gcc dot gnu.org
@ 2022-11-10 23:20 ` pinskia at gcc dot gnu.org
  2022-11-10 23:21 ` [Bug c++/80637] constraint on a member function does causes ambigious and not allowing forming a pointer to the function pinskia at gcc dot gnu.org
  2022-11-10 23:24 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-10 23:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80637

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jlame646 at gmail dot com

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 107605 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/80637] constraint on a member function does causes ambigious and not allowing forming a pointer to the function
       [not found] <bug-80637-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2022-11-10 23:20 ` pinskia at gcc dot gnu.org
@ 2022-11-10 23:21 ` pinskia at gcc dot gnu.org
  2022-11-10 23:24 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-10 23:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80637

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-11-10
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase from the dup bug:

extern "C" int puts(const char*);

template <typename T>
class myclass {
public:

  void func(const T&) requires true
  {
     puts("true");
  }

  void func(const T&) requires false
  {
     puts("false");
  }
};                                                                              

auto mylambda = &myclass<int>::func;

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/80637] constraint on a member function does causes ambigious and not allowing forming a pointer to the function
       [not found] <bug-80637-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2022-11-10 23:21 ` [Bug c++/80637] constraint on a member function does causes ambigious and not allowing forming a pointer to the function pinskia at gcc dot gnu.org
@ 2022-11-10 23:24 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-10 23:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80637

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> Reduced testcase from the dup bug:

Oh MSVC still rejects this reduced testcase for the same reason as GCC.
<source>(19): error C3535: cannot deduce type for 'auto' from
'overloaded-function'

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-10 23:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-80637-4@http.gcc.gnu.org/bugzilla/>
2022-06-21 18:03 ` [Bug c++/80637] [concepts] incorrect ambiguous overload pinskia at gcc dot gnu.org
2022-06-21 18:04 ` pinskia at gcc dot gnu.org
2022-11-10 23:20 ` pinskia at gcc dot gnu.org
2022-11-10 23:21 ` [Bug c++/80637] constraint on a member function does causes ambigious and not allowing forming a pointer to the function pinskia at gcc dot gnu.org
2022-11-10 23:24 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).