https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101265
Alan Wu <gcc at alanwu dot email> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Alan Wu <gcc at alanwu dot email> ---
Thank you! The key paragraph in N2596 seems to be 6.7.6.2p3. I also reached out
to Aaron Ballman for clarification.
gcc is right to ignore the attribute in this case. g++ accepting the attribute
is potentially an issue, since the C++ spec has similar rules ([dcl.array]p3).
Clang accepting the attribute also seems to be a bug. There is now a ticket for
it: https://bugs.llvm.org/show_bug.cgi?id=50954