https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58646
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |ice-on-invalid-code Known to work| |4.8.5 Summary|ICE on a multidimensional |[8/9/10 Regression] ICE on |VLA with an empty |a multidimensional VLA with |initializer list |an empty initializer list Known to fail|4.9.0, 5.3.0, 6.0 |10.0, 4.9.4, 5.5.0, 6.4.0, | |7.2.0, 8.0, 9.2.0 --- Comment #10 from Martin Sebor <msebor at gcc dot gnu.org> --- Bisection of the first test case points to r198746 (GCC 4.9.0) as the first revision that started to ICE. Before then, GCC rejected the initialization with: pr58646.C: error: variable-sized object ‘a’ may not be initialized int a[2][n] = {}; ^ commit a57dbdaac40dbaaaba5b6d9954829a5e6f630ae4 Author: Jason Merrill <ja...@redhat.com> Date: Thu May 9 12:43:43 2013 -0400 N3639 C++1y VLA diagnostics * decl.c (grokdeclarator): Complain about reference, pointer, or typedef to VLA. (create_array_type_for_decl): Complain about array of VLA. * pt.c (tsubst): Likewise. * rtti.c (get_tinfo_decl): Talk about "array of runtime bound". * semantics.c (finish_decltype_type): Complain about decltype of VLA. * typeck.c (cp_build_addr_expr_1): Complain about VLA. (cxx_sizeof_or_alignof_type): Likewise. From-SVN: r198746