https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16191
--- Comment #9 from Jonathan Wakely ---
CWG 1710 was approved as a defect report in Kona 2016:
> Move to accept as Defect Reports the issues in P0575R1 (Core Language "ready"
> issues) and apply their proposed resolutions to the C++ working pape
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16191
--- Comment #8 from Andrew Pinski ---
Looks like the resolution of DR1710 (though it was supposed to be C++17+)
causes the code without the template to be accepted which means this should be
rejected for C++98, C++03, C++11 and C++14
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16191
--- Comment #7 from Andrew Pinski ---
Hmm, this code started be accepted in GCC 10+; I suspect by the fix for PR
94057.
was that really expected?