https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70382
Bug ID: 70382 Summary: Attribute not supported on bit-field declarations Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: aaron.ballman+gcc at gmail dot com Target Milestone: --- The following code produces a reject-valid diagnostic: struct test { unsigned d [[]] : 1; }; main.cpp:2:17: error: function definition does not declare parameters unsigned d [[]] : 1; ^ [class.bit]p1 (in part): A member-declarator of the form identifieropt attribute-specifier-seqopt: constant-expression specifies a bit-field; its length is set off from the bit-field name by a colon. The optional attribute-specifierseq appertains to the entity being declared. MSVC and Clang both accept.