https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123935
Bug ID: 123935
Summary: Accepts unnamed bit fields with qualifiers
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Blocks: 94404
Target Milestone: ---
This is invalid based on https://cplusplus.github.io/CWG/issues/2229.html but
gcc accepts it currently:
```
struct s
{
const int :1;
volatile int :1;
};
```
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404
[Bug 94404] [meta-bug] C++ core issues