https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68637
--- Comment #5 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- Indeed, the parse appears to be correct (although there are various existing cases where an attribute gets automatically moved to apply to a type rather than to the original declaration to which it applies according to the parse).