https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84311
Bug ID: 84311 Summary: compiler accepts invalid multiple type-specifiers in a decl-specifier-seq for an enum Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: smw at gcc dot gnu.org Target Milestone: --- The following C++ code compiles without error (all versions of GCC tested) in violation of [dcl.type]/2. long enum E { one, two, three }; signed enum F { }; short enum G { }; A diagnostic is issued by clang, MSVC, and ICC.