This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78280] GCC incorrectly accepts assignment in bitfield width
- From: "zeratul976 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 Nov 2016 19:04:37 +0000
- Subject: [Bug c++/78280] GCC incorrectly accepts assignment in bitfield width
- Auto-submitted: auto-generated
- References: <bug-78280-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78280
Nathan Ridge <zeratul976 at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zeratul976 at hotmail dot com
--- Comment #1 from Nathan Ridge <zeratul976 at hotmail dot com> ---
(To clarify, the reason this is incorrect is that in the C++ grammar, the
bitfield width is a constant-expression, which excludes
assignment-expressions.)