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
          Reporter: smw at gcc dot
  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.

Reply via email to