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

            Bug ID: 64987
           Summary: alignas(N) (and __attribute__(__aligned__(N))) ignored
                    on enum specifiers
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk

Testcase:

  enum alignas(16) E {};
  E e;

GCC fails to align 'e' to 16 bytes.

The same issue exists for __attribute__((__aligned__(16))), which the
documentation suggests should work.

Reply via email to