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: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Sep 2016 23:06:00 +0000
- Subject: [Bug c++/61414] enum class bitfield size-checking failure
- Auto-submitted: auto-generated
- References: <bug-61414-4@http.gcc.gnu.org/bugzilla/>
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.