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: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jun 2014 18:42:48 +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
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.