Alignas attribute for enums

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

I wanted to ask, does gcc allow alignas attribute for enums?

I can see this in some of the test cases in the gcc test suite:
https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/g%2B%2B.dg/cpp0x/alignas7.C#L7
https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/g%2B%2B.dg/cpp0x/alignas15.C#L4
https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/g%2B%2B.dg/cpp2a/is-layout-compatible3.C#L37

I think it is not allowed from c++20 onwards:
https://cplusplus.github.io/CWG/issues/2354.html

kind regards
Fahad



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux