https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- (In reply to Tom Tromey from comment #1) > However, the bug still exists if the underlying type is not fixed: > > enum class K { > V = 27 > }; This enum K also has a fixed underlying type (int). Contrary to unscoped enums, *all* scoped enums have a pre-defined underlying type that does not depend on the individual enumerators.