https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79050

            Bug ID: 79050
           Summary: internal compiler error: tree code
                    'template_type_parm' is not supported in LTO streams
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kdevel at vogtner dot de
  Target Milestone: ---

Created attachment 40497
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40497&action=edit
testcase

$ LANG= g++ -std=c++14 -Wall -pedantic -flto gcc-treecode-bug.cc

gcc-treecode-bug.cc:9:1: internal compiler error: tree code
'template_type_parm' is not supported in LTO streams
 }
 ^
0x990b0f DFS::DFS(output_block*, tree_node*, bool, bool, bool)
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/lto-streamer-out.c:672
0x9913ad lto_output_tree(output_block*, tree_node*, bool, bool)
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/lto-streamer-out.c:1609
0x98a852 write_global_stream
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/lto-streamer-out.c:2397
0x991c16 lto_output_decl_state_streams(output_block*, lto_out_decl_state*)
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/lto-streamer-out.c:2444
0x991c16 produce_asm_for_decls()
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/lto-streamer-out.c:2820
0x9d44ef write_lto
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/passes.c:2411
0x9d75ae ipa_write_summaries_1
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/passes.c:2472
0x9d75ae ipa_write_summaries()
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/passes.c:2532
0x789718 ipa_passes
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/cgraphunit.c:2217
0x789718 symbol_table::compile()
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/cgraphunit.c:2313
0x78af0f symbol_table::compile()
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/timevar.h:110
0x78af0f symbol_table::finalize_compilation_unit()
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/cgraphunit.c:2462
0x625f02 cp_write_global_declarations()
        [redacted]/gcc-5.4.0/bld/gcc-5.4.0/gcc/cp/decl2.c:4849
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.

Reply via email to