https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120646
Bug ID: 120646 Summary: Parenthesized declarators of bit-fields are incorrectly rejected Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: luigighiron at gmail dot com Target Milestone: --- The following code is not accepted by GCC: struct S{ int(x):10; }; int main(){} This code should be valid, declarators can normally be parenthesized. GCC accepts this code when bit-fields are not used. Clang and MSVC accept this code with and without bit-fields. Also, the error message generated for this program is very strange: "bit-field 'x' has non-integral type 'int'".