http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53661

Harald van Dijk <harald at gigawatt dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harald at gigawatt dot nl

--- Comment #9 from Harald van Dijk <harald at gigawatt dot nl> 2012-09-14 
16:28:40 UTC ---
Sorry for butting in, but is this really a bug?

7.2p5 says "Each enumeration defines a type that is different from all other
types. Each enumeration also has an underlying type. The underlying type can be
explicitly specified using enum-base; if not explicitly specified, the
underlying type of a scoped enumeration type is int. In these cases, the
underlying type is said to be fixed."

This is an unscoped enumeration type without an enum-base, so the underlying
type is not fixed. 7.2p7 starts as "For an enumeration whose underlying type is
fixed,", so does not apply. 7.2p6 does apply, but the relevant text of 7.2p7
that would make this code valid isn't present there.

Reply via email to