https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93240
Bug ID: 93240 Summary: [frontend] 'align_value' attribute not honored to variables in types Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: lebedev.ri at gmail dot com Target Milestone: --- https://godbolt.org/z/-ExpDY typedef double * aligned_double_ptr __attribute__((align_value(64))); struct S { aligned_double_ptr y; }; void foo(S*s){ s->y[0] = 0; } <source>:1:68: warning: 'align_value' attribute directive ignored [-Wattributes] 1 | typedef double * aligned_double_ptr __attribute__((align_value(64))); | ^ Compiler returned: 0 With clang that correctly results in alignment being lowered and used as alignment for the store: https://godbolt.org/z/SybzgM