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

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 28 23:06:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-09-28
     Ever confirmed|0                           |1

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
PR 51242 discusses the same issue, and PR 51242 comment 27 notes that Clang
only warns when a value that isn't known to fit is assigned to the bitfield,
which seems more useful.

At the very least there should be a -Wxxx switch controlling this option so it
can be disabled.


More information about the Gcc-bugs mailing list