https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70407
--- Comment #2 from Dehuan Xin <dxin at usc dot edu> --- (In reply to Richard Biener from comment #1) > Confirmed as a documentation issue. Note that > > typedef struct S_ { short f[3] __attribute((aligned(8))); } S; > > works (and increases sizeof (S_)). So for a struct, aligning the first field of it is effectively aligning the struct. But that seems a variable attribute rather than type attribute, a very different usage. (as is documented here https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#Common-Variable-Attributes). And for typedef int more_aligned_int __attribute__ ((aligned (8))); it's still an issue.