This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61414] enum class bitfield size-checking failure
- From: "tromey at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jun 2014 18:46:07 +0000
- Subject: [Bug c++/61414] enum class bitfield size-checking failure
- Auto-submitted: auto-generated
- References: <bug-61414-4 at http dot gcc dot gnu dot org/bugzilla/>
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.