https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86458
Bug ID: 86458 Summary: [8/9 Regression] ICE: tree code ‘template_parm_index’ is not supported in LTO streams Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jakub at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Following ICEs: $ cat ice4.ii template<int N> using T = int __attribute__((vector_size (sizeof(int) * N))); void f (T<4>) { } $ g++ ice4.ii -c -flto during IPA pass: fnsummary ice4.ii:7:1: internal compiler error: tree code ‘template_parm_index’ is not supported in LTO streams } ^ 0xd7b89b lto_write_tree /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:449 0xd7b89b lto_output_tree_1 /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:490 0xd7b89b DFS::DFS(output_block*, tree_node*, bool, bool, bool) /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:677 0xd7c7d0 lto_output_tree(output_block*, tree_node*, bool, bool) /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:1642 0xd72042 write_global_stream /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:2515 0xd7a6fe lto_output_decl_state_streams(output_block*, lto_out_decl_state*) /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:2562 0xd7a6fe produce_asm_for_decls() /home/marxin/Programming/gcc/gcc/lto-streamer-out.c:2891 0xdda70f write_lto /home/marxin/Programming/gcc/gcc/passes.c:2562 0xdddb6e ipa_write_summaries_1 /home/marxin/Programming/gcc/gcc/passes.c:2623 0xdddb6e ipa_write_summaries() /home/marxin/Programming/gcc/gcc/passes.c:2686 0xae1bf2 ipa_passes /home/marxin/Programming/gcc/gcc/cgraphunit.c:2448 0xae1bf2 symbol_table::compile() /home/marxin/Programming/gcc/gcc/cgraphunit.c:2536 0xae3d69 symbol_table::compile() /home/marxin/Programming/gcc/gcc/cgraphunit.c:2515 0xae3d69 symbol_table::finalize_compilation_unit() /home/marxin/Programming/gcc/gcc/cgraphunit.c:2696