[Bug c++/16191] Note for missing 'template' reports wrong template parameter

2021-08-23 Thread redi at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/16191] Note for missing 'template' reports wrong template parameter

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/16191] Note for missing 'template' reports wrong template parameter

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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?