From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5DD5F3858D1E; Tue, 24 Jan 2023 06:52:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5DD5F3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674543158; bh=BqlwsVY+NCKPap8Y7z3lxES1bRw3iZUaro0HapbiWuA=; h=From:To:Subject:Date:From; b=MD5fxymUz+NCci4MhNA3yuY/DDt8/UZxn7dvunVQlECcZ2H8EFRv6vQ1Y2KUUOAhE hV2abbKMLWkG9y/yH/yBexGZnn+WrMXmE6DVLXSX5dFKdBw+SX+uAOahIHrTuHusVE mFUFePyaeJ23PY8bXbRQwSp5Yc07lLK9woCvaerg= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/108509] New: [13 Regression] ICE in add, at hash-set.h:64 Date: Tue, 24 Jan 2023 06:52:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108509 Bug ID: 108509 Summary: [13 Regression] ICE in add, at hash-set.h:64 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com CC: marxin at gcc dot gnu.org Target Milestone: --- gcc 13.0.1 20230122 snapshot (g:844eab81da3f49da88e8bb02e2b1255ba88d02b0) I= CEs when compiling the following testcase, reduced from test/CodeGenCXX/vtable-available-externally.cpp from the clang 15 test suit= e, w/ -O1 -fdevirtualize -fno-tree-fre: struct B { virtual void deref (); }; struct RefPtr { B *p; RefPtr () { p->deref (); } }; void f () { RefPtr b; } % g++-13 -O1 -fdevirtualize -fno-tree-fre -c ce52fpmj.cpp during IPA pass: remove_symbols ce52fpmj.cpp:18:1: internal compiler error: in add, at hash-set.h:64 18 | } | ^ 0x7fa104 hash_set >::add(symtab_node* const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230122/work/gcc-13-20230122/gcc/ha= sh-set.h:64 0x7faaf4 hash_set >::add(void* con= st&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230122/work/gcc-13-20230122/gcc/tr= ee.h:3644 0x7faaf4 walk_polymorphic_call_targets =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230122/work/gcc-13-20230122/gcc/ip= a.cc:185 0x7faaf4 symbol_table::remove_unreachable_nodes(_IO_FILE*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230122/work/gcc-13-20230122/gcc/ip= a.cc:430 0x1108079 execute_todo =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230122/work/gcc-13-20230122/gcc/pa= sses.cc:2159=