[Bug c++/117454] Template parameter hidden by base class name

2024-11-05 Thread Darrell.Wright at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117454 --- Comment #4 from Darrell Wright --- #include struct Base { using Type = int; }; template struct Derived : Base { Type field; }; static_assert( std::is_same_v{}.field), double> ); I think this should warn too, the intent is clea

[Bug c++/117454] Template parameter hidden by base class name

2024-11-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117454 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-11-05 Status|UNCONFIRM

[Bug c++/117454] Template parameter hidden by base class name

2024-11-05 Thread Darrell.Wright at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117454 --- Comment #2 from Darrell Wright --- Thanks, yeah, I forgot to add that, I did try something like -Wall -Wextra -pedantic -pedantic-errors -Wshadow -O1

[Bug c++/117454] Template parameter hidden by base class name

2024-11-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117454 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Andrew P