https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68637
Bernd Schmidt <bernds at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernds at gcc dot gnu.org, | |jsm28 at gcc dot gnu.org --- Comment #4 from Bernd Schmidt <bernds at gcc dot gnu.org> --- The docs say "An attribute specifier list may appear immediately before the comma, = or semicolon terminating the declaration of an identifier other than a function definition. Such attribute specifiers apply to the declared object or function. Where an assembler name for an object or function is specified (see Asm Labels), the attribute must follow the asm specification." By my reading, you're declaring an array, so the attribute applies to the array, and the warning is correct and the bug is invalid. Joseph - any disagreement on how this should be parsed?