You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For compatibility with existing code written for compiler versions that did not implement attributes on nested declarators, some laxity is allowed in the placing of attributes. [...]. If an attribute that only applies to declarations is applied to the type of a declaration, it is treated as applying to that declaration
But does not accept int iarr3 [10] [[gnu::aligned(16)]]; like gcc does
The following valid program is rejected by clang but accepted by both gcc and msvc. Demo
Clang says:
Note that if you move
[10]
to afteralignas(Required)
then clang also starts accepting.The text was updated successfully, but these errors were encountered: