https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87772
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-29 Component|c++ |debug Ever confirmed|0 |1 Known to fail| |7.3.1, 8.2.1, 9.0 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. GCC 7 fails the same way, GCC 6 doesn't like the testcase. > g++-8 t.ii -std=c++17 -g -B /abuild/rguenther/gcc8-g/gcc main.cpp: In instantiation of ‘struct Parser<std::array<std::array<SentenceBase<void>, 1>, 1> >’: main.cpp:24:53: required from here main.cpp:16:8: internal compiler error: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in equate_type_number_to_die, at dwarf2out.c:5773 0x164f511 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /space/rguenther/src/svn/gcc-8-branch/gcc/tree.c:9384 0x848ea8 tree_class_check(tree_node*, tree_code_class, char const*, int, char const*) /space/rguenther/src/svn/gcc-8-branch/gcc/tree.h:3262 0xd4bc9b equate_type_number_to_die /space/rguenther/src/svn/gcc-8-branch/gcc/dwarf2out.c:5773 0xd8099e gen_typedef_die /space/rguenther/src/svn/gcc-8-branch/gcc/dwarf2out.c:25197 0xd83ad7 gen_decl_die /space/rguenther/src/svn/gcc-8-branch/gcc/dwarf2out.c:26215