[Bug c++/100396] [11.1 regression] The template function overload is not selected correctly
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 3 15:14:03 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100396
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
CC| |ppalka at gcc dot gnu.org
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Thanks for the bug report. It looks like we started rejecting this after
r11-2774.
The testcase is invalid, I think. You need to declare 'valid' as a concept
instead of a constexpr variable so that substitution failure during constraint
checking of the first overload of 'ovr' is a SFINAE error.
More information about the Gcc-bugs
mailing list