[Bug c++/113342] Template parameter does not shadow member enum value.

2024-01-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113342 --- Comment #2 from Andrew Pinski --- Note there was a change between `clang 10` and `clang 11` which changed clang into accepting the code. So I am 99% sure it is that paper which caused the change ...

[Bug c++/113342] Template parameter does not shadow member enum value.

2024-01-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113342 --- Comment #1 from Andrew Pinski --- Note MSVC has the same behavior as GCC here: ``` (13): error C2244: 'Job::create': unable to match function definition to an existing declaration (13): note: see declaration of 'Job::create' (13): note: defi