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

            Bug ID: 105978
           Summary: ICE: nodes with unreleased memory found
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

This started with r10 (gcc configured with --enable-checking=yes)
(case from g++.dg/torture/pr43611.C, but other cases ICE earlier)


$ gcc-13-20220612 -c pr43611.C -O2 -fdisable-ipa-inline
cc1plus: note: disable pass ipa-inline for functions in the range of [0,
4294967295]
_ZN1BIiEC2Ev/2 (B< <template-parameter-1-1> >::B() [with
<template-parameter-1-1> = int]) @0x7ff744966220
  Type: function definition analyzed
  Visibility: semantic_interposition external public comdat
  References:
  Referring: _ZN1BIiEC1Ev/3 (alias)
  Availability: available
  Function flags: count:1073741824 (estimated locally) body
  Called by:
  Calls: _ZN1AIiE4initEi/9 (1073741824 (estimated locally),1.00 per call) (can
throw external) _ZN1AIiE4initEi/9 (1073741824 (estimated locally),1.00 per
call) (can throw external)
pr43611.C:22:12: internal compiler error: nodes with unreleased memory found
   22 | B < int > b;
      |            ^
0xbc4de9 symbol_table::compile()
        ../../gcc/cgraphunit.cc:2381
0xbc831f symbol_table::compile()
        ../../gcc/cgraphunit.cc:2533
0xbc831f symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.cc:2530

Reply via email to