https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114634
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |8.5.0 Target Milestone|--- |11.5 Summary|Crash Issue Encountered in |[11/12/13/14 Regression] |GCC Compilation of Template |Crash Issue Encountered in |Code with Aligned Attribute |GCC Compilation of Template | |Code with Aligned Attribute Keywords|ice-on-valid-code |ice-on-invalid-code Known to fail| |9.1.0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So GCC 8.5.0 and before we rejected this code: ``` <source>:5:10: error: alignment may not be specified for 'e' enum { e __attribute__ ((aligned(16))) }; ^ ``` And GCC trunk rejects it if not inside a template struct so changing ice-on-valid to ice-on-invalid and marking it as a regression. Note clang accepts it in both cases though. But this is a gcc extension after all.