https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83997
Bug ID: 83997 Summary: ICE with alias template and attribute Product: gcc Version: 8.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, lto Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org CC: jakub at gcc dot gnu.org, marxin at gcc dot gnu.org Depends on: 83300 Target Milestone: --- The valid testcase gcc/testsuite/g++.dg/ext/vector33.C from PR83300 triggers an ICE since GCC 4.7.0 when compiled with -flto: during IPA pass: fnsummary bu11.cc:10:1: internal compiler error: tree code 'template_parm_index' is not supported in LTO streams } ^ 0xd7d163 lto_write_tree ../../gcc/gcc/lto-streamer-out.c:442 0xd7d163 lto_output_tree_1 ../../gcc/gcc/lto-streamer-out.c:483 0xd7d163 DFS::DFS(output_block*, tree_node*, bool, bool, bool) ../../gcc/gcc/lto-streamer-out.c:670 0xd7e06d lto_output_tree(output_block*, tree_node*, bool, bool) ../../gcc/gcc/lto-streamer-out.c:1642 0xd73732 write_global_stream ../../gcc/gcc/lto-streamer-out.c:2492 0xd7c00e lto_output_decl_state_streams(output_block*, lto_out_decl_state*) ../../gcc/gcc/lto-streamer-out.c:2539 0xd7c00e produce_asm_for_decls() ../../gcc/gcc/lto-streamer-out.c:2908 0xdd9c6f write_lto ../../gcc/gcc/passes.c:2613 0xddd32e ipa_write_summaries_1 ../../gcc/gcc/passes.c:2674 0xddd32e ipa_write_summaries() ../../gcc/gcc/passes.c:2734 0xae5bc2 ipa_passes ../../gcc/gcc/cgraphunit.c:2468 0xae5bc2 symbol_table::compile() ../../gcc/gcc/cgraphunit.c:2558 0xae7be9 symbol_table::compile() ../../gcc/gcc/cgraphunit.c:2537 0xae7be9 symbol_table::finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2717 Please submit a full bug report, [etc.] Jakub, you fixed PR83300. Would you mind having a look? Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83300 [Bug 83300] Segmentation fault with template and __attribute__((vector_size (sizeof(int) * N)));