[Bug c++/61414] enum class bitfield size-checking failure
tromey at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 4 18:46:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414
--- Comment #3 from Tom Tromey <tromey at gcc dot gnu.org> ---
(In reply to Daniel Krügler from comment #2)
> (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.
Hah, shows what I know.
Regardless, this warning does not seem to be useful to me.
More information about the Gcc-bugs
mailing list