[Bug c++/89357] alignas for automatic variables with alignment greater than 16 fails

jsm28 at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 18 23:02:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89357

Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |c++

--- Comment #1 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
The given test is C++, not C.  I can't reproduce this issue with a C test; my
expectation is that both _Alignas and __attribute__ ((aligned ())) should
accept arbitrarily high alignments for automatic storage duration, which
appears to be the case for C (if there were a bug I'd expect it to be
rejects-valid not accepts-invalid).

If you (Richard) think this is a C bug, please give a specific C testcase,
target and options used to compile it.


More information about the Gcc-bugs mailing list