https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96637
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.5 Summary|ICE in tree check: expected |[9/10/11/12 Regression] ICE |tree_list, have error_mark |in tree check: expected |in |tree_list, have error_mark |cp_check_const_attributes, |in |at cp/decl2.c:1423 |cp_check_const_attributes, | |at cp/decl2.c:1423 Known to work| |5.5.0 Severity|normal |minor Known to fail| |6.1.0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- In GCC 5.5.0 and before we only got the following error message and no confused by earlier errors message: <source>:1:16: error: expected ',' or '...' before 'alignas' void foo(int[] alignas[1] alignas(1)){} ^ GCC 6+ changed the error message to: <source>:1:23: error: expected '(' before '[' token void foo(int[] alignas[1] alignas(1)){} ^