https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96620
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aoliva at gcc dot gnu.org
--- Comment #1 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
I guess this follows from [dcl.type]:
> The optional attribute-specifier-seq in a type-specifier-seq or a
> defining-type-specifier-seq appertains to the type denoted by the preceding
> type-specifiers or defining-type-specifiers (11.3). The
> attribute-specifier-seq affects the type only for the declaration it appears
> in, not other declarations involving the same type.
I'm not sure we should distinguish between __attribute__((_)) and [[_]].
This probably explains bug 96619 as well.