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

            Bug ID: 123970
           Summary: ICE in lto_write_tree: tree code 'decltype_type' is
                    not supported in LTO streams
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

When compiling libstdc++-v3/testsuite/ext/iotaarray.cc with -O2 -flto
-std=gnu++26 I hit

libstdc++-v3/testsuite/ext/iotaarray.cc:20: internal compiler error: tree code
'decltype_type' is not supported in LTO streams^M
0x3d132d7 internal_error(char const*, ...)^M
        /space/rguenther/src/gcc-clean/gcc/diagnostic-global-context.cc:787^M
0x1ca9d78 lto_write_tree^M
        /space/rguenther/src/gcc-clean/gcc/lto-streamer-out.cc:560^M
0x1ca9ea5 lto_output_tree_1^M
        /space/rguenther/src/gcc-clean/gcc/lto-streamer-out.cc:598^M
0x1caab8d DFS::DFS(output_block*, tree_node*, bool, bool, bool)^M
        /space/rguenther/src/gcc-clean/gcc/lto-streamer-out.cc:898^M
0x1cb29e7 lto_output_tree(output_block*, tree_node*, bool, bool)^M
        /space/rguenther/src/gcc-clean/gcc/lto-streamer-out.cc:1887^M
0x1cb5d7f write_global_stream^M
        /space/rguenther/src/gcc-clean/gcc/lto-streamer-out.cc:2956^M
0x1cb5eb2 lto_output_decl_state_streams(output_block*, lto_out_decl_state*)^M
        /space/rguenther/src/gcc-clean/gcc/lto-streamer-out.cc:3003^M
0x1cb71f0 produce_asm_for_decls()^M
        /space/rguenther/src/gcc-clean/gcc/lto-streamer-out.cc:3427^M
0x1db0fef write_lto^M
        /space/rguenther/src/gcc-clean/gcc/passes.cc:2796^M
0x1db1210 ipa_write_summaries_1^M
        /space/rguenther/src/gcc-clean/gcc/passes.cc:2859^M

Reply via email to