From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 371323858016; Wed, 28 Sep 2022 17:36:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 371323858016 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664386617; bh=cUGWEuIZ1Hlb4w0gGNTGTLLXlIEAUKjJvc1muYBM1LQ=; h=From:To:Subject:Date:From; b=eDsc9Q0Ks+LJadOI95acaS7XLPH6V8PX29QJeqo+Nw3m+lDLmvUGxz4E642Dke+ny tMW8jGM0IPcQ0bWCJKphoy/+WuGzBT5SzWdTVJR0PJnwkZKyDRmTd2ICfbvNKWeIJu KlHefn0g04K5NNqAEyIh4Y+bGUeAtD1Po+HvVmHQ= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107075] New: ICE in get, at cgraph.h:461 Date: Wed, 28 Sep 2022 17:36:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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 bug_severity priority component assigned_to reporter 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=3D107075 Bug ID: 107075 Summary: ICE in get, at cgraph.h:461 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Affects versions down to at least r5 : (both valid, works without block construct) $ cat z1.f90 program p implicit none integer, target :: a(3) block integer, pointer :: z =3D> a(2) a =3D [1, 2, 3] z =3D 7 print *, a, z end block end $ cat z2.f90 program p implicit none integer, target :: a(3) integer, pointer :: z =3D> a(2) a =3D [1, 2, 3] z =3D 7 print *, a, z end $ gfortran-13-20220925 z2.f90 && ./a.out 1 7 3 7 $ gfortran-13-20220925 -c z1.f90 f951: internal compiler error: in get, at cgraph.h:461 0x131212f symtab_node::get(tree_node const*) ../../gcc/cgraph.h:458 0x131212f varpool_node::get(tree_node const*) ../../gcc/cgraph.h:2785 0x131212f varpool_node::get_create(tree_node*) ../../gcc/varpool.cc:145 0xa1e20f record_reference ../../gcc/cgraphbuild.cc:82 0x12ad193 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) ../../gcc/tree.cc:11249 0xa1ecb5 record_references_in_initializer(tree_node*, bool) ../../gcc/cgraphbuild.cc:386 0x1313037 varpool_node::analyze() ../../gcc/varpool.cc:537 0xa2506e analyze_functions ../../gcc/cgraphunit.cc:1294 0xa2624d symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.cc:2500=