https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120895
--- Comment #27 from David C. Partridge <david.partridge at perdrix dot co.uk> --- You can't change the alignment for a type depending on compile options! Different bits of our cod eneed to be compiled with different compiler options so that the same code can run on both AVX (generic term) capable and non-AVX capable hardware. The type __m512 has an alignment requirement of 64 FULL STOP. It can't be 16 sometimes, 32 at other times and 64 at yet other times.