public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95262] New: Taking address of function pointer do full concept overload resolution
@ 2020-05-21 18:26 barry.revzin at gmail dot com
  2020-06-22 13:38 ` [Bug c++/95262] Taking address of function pointer doesn't " ppalka at gcc dot gnu.org
  2021-01-18 16:04 ` ppalka at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: barry.revzin at gmail dot com @ 2020-05-21 18:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95262
           Summary: Taking address of function pointer do full concept
                    overload resolution
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: barry.revzin at gmail dot com
  Target Milestone: ---

Reduced from StackOverflow (https://stackoverflow.com/q/61941173/2069064):

template <typename> int f() { return 0; }
template <typename> requires true int f() { return 1; }

int (*p)() = &f<int>;

gcc complains that converting the function is ambiguous even though the second
overload is a better candidate than the first. clang accepts.

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

* [Bug c++/95262] Taking address of function pointer doesn't do full concept overload resolution
  2020-05-21 18:26 [Bug c++/95262] New: Taking address of function pointer do full concept overload resolution barry.revzin at gmail dot com
@ 2020-06-22 13:38 ` ppalka at gcc dot gnu.org
  2021-01-18 16:04 ` ppalka at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-06-22 13:38 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-06-22
                 CC|                            |ppalka at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Confirmed.

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

* [Bug c++/95262] Taking address of function pointer doesn't do full concept overload resolution
  2020-05-21 18:26 [Bug c++/95262] New: Taking address of function pointer do full concept overload resolution barry.revzin at gmail dot com
  2020-06-22 13:38 ` [Bug c++/95262] Taking address of function pointer doesn't " ppalka at gcc dot gnu.org
@ 2021-01-18 16:04 ` ppalka at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-01-18 16:04 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.3
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed for GCC 10.3 and 11 by r11-2634 / r10-8627.

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

end of thread, other threads:[~2021-01-18 16:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-21 18:26 [Bug c++/95262] New: Taking address of function pointer do full concept overload resolution barry.revzin at gmail dot com
2020-06-22 13:38 ` [Bug c++/95262] Taking address of function pointer doesn't " ppalka at gcc dot gnu.org
2021-01-18 16:04 ` ppalka 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).