[Bug c++/61414] enum class bitfield size-checking failure
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 4 18:42:00 GMT 2014
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.
More information about the Gcc-bugs
mailing list