[Bug c++/114392] Address of overloaded function with requires

2024-03-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114392

Andrew Pinski  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=29143

--- Comment #2 from Andrew Pinski  ---
Related to the much older bug 29143; which was fixed in GCC 4.9.0 but I suspect
the issue is in the same area even ...

[Bug c++/114392] Address of overloaded function with requires

2024-03-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114392

Jonathan Wakely  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2024-03-19
   Keywords||rejects-valid
 Status|UNCONFIRMED |NEW

--- Comment #1 from Jonathan Wakely  ---
c.cc: In function 'int main()':
c.cc:10:6: error: address of overloaded function with no contextual type
information
   10 | (<0>::call)();
  | ~^~~~
c.cc:11:6: error: address of overloaded function with no contextual type
information
   11 | (<1>::call)(5);
  | ~^~~~