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++/51242] [C++11] Unable to use strongly typed enums as bit fields


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51242

--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-26 11:26:16 UTC ---
The warning noticed by Jon seems a latent issue unrelated to bitfields and due
to the fact to for scoped enums, the underlying type, if not explicitly
specified is if fixed to int type. Thus, in finish_enum_value_list,
fixed_underlying_type_p is true and the code "restricting" ENUM_UNDERLYING_TYPE
for the benefit of diagnostics doesn't run. It seems that it should run anyway,
when the underlying type is fixed but implicitly so.


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