[Bug c++/78280] GCC incorrectly accepts assignment in bitfield width
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78280 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Target Milestone|--- |8.0 --- Comment #2 from Andrew Pinski --- Fixed when C++20 support for default member initializers for bit-fields was added.
[Bug c++/78280] GCC incorrectly accepts assignment in bitfield width
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78280 Nathan Ridge changed: What|Removed |Added CC||zeratul976 at hotmail dot com --- Comment #1 from Nathan Ridge --- (To clarify, the reason this is incorrect is that in the C++ grammar, the bitfield width is a constant-expression, which excludes assignment-expressions.)