https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67699
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-09-24 CC| |trippels at gcc dot gnu.org Component|c++ |lto Ever confirmed|0 |1 Known to fail| |4.9.3, 5.2.0, 6.0 --- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- markus@x4 tmp % cat crash.ii template <class T> class foo { foo() { int const bar[2] = {1, 1}; } }; template class foo<int>; markus@x4 tmp % g++ -flto crash.ii crash.ii:4:24: internal compiler error: in get, at cgraph.h:371 template class foo<int>; ^ 0xb54891 symtab_node::get(tree_node const*) ../../gcc/gcc/cgraph.h:368 0xb54891 varpool_node::get(tree_node const*) ../../gcc/gcc/cgraph.h:2365 0xb54891 compute_ltrans_boundary(lto_symtab_encoder_d*) ../../gcc/gcc/lto-cgraph.c:921 0xbbdb5f ipa_write_summaries() ../../gcc/gcc/passes.c:2535 0x905b06 ipa_passes ../../gcc/gcc/cgraphunit.c:2304 0x905b06 symbol_table::compile() ../../gcc/gcc/cgraphunit.c:2400 0x9084c7 symbol_table::compile() ../../gcc/gcc/cgraphunit.c:2536 0x9084c7 symbol_table::finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2562 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.