[Bug c++/52130] missing check for matching underlying type during instantiation of enum member of class template
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 18 17:08:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52130
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Status|WAITING |NEW
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I don't know what an "enumeration template" is, but I would say no. The code
should be rejected because S<T>::E is declared with an underlying type of int,
then redeclared with an underlying type that depends on the template parameter.
The pedwarn about enumeration types is something unrelated, and predates fixed
underlying types by more than a decade.
More information about the Gcc-bugs
mailing list