This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61414] enum class bitfield size-checking failure


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]