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++/78280] GCC incorrectly accepts assignment in bitfield width


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.)

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