From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A73393858407; Tue, 13 Sep 2022 19:35:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A73393858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663097711; bh=04ein6MbJsVe3+SNUZLDWPshK/rau4EjpazPsGrfg8U=; h=From:To:Subject:Date:From; b=hT0hrGQ8f/dHnR+J18pW8OKBM9tGcgUQgqZV5lMI4sCL9vq6iOaeWyu13LiiB2w5X 3O+CTDwLK0uSWdHaiVx216WRWjvZuF01/NkB12VmVUpG4X6HIkyMP0cI2TXlHU4Kum LzwQBe6F+X6/bFwBL6RZsRE+wNKGzH2ZJkCjW868= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106936] New: [13 Regression] ICE in get_value_range, at value-query.cc:170 Date: Tue, 13 Sep 2022 19:35:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ 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=3D106936 Bug ID: 106936 Summary: [13 Regression] ICE in get_value_range, at value-query.cc:170 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20220717 and 20220724, at -O2+, reduced from llvm-project-llvmorg-14.0.6/clang/test/Analysis/pointer-to-member.cpp : (gcc configured with --enable-checking=3Dyes) $ cat z1.cc namespace testPointerToMemberMiscCasts2 { struct B { int f; }; struct L : public B { }; struct R : public B { }; struct D : public L, R { }; int B::* pb =3D &B::f; int R::* pr =3D pb; int D::* pdr =3D pr; } $ g++-13-20220911 -c z1.cc -O2 -fno-tree-ccp -fno-tree-forwprop -fno-tree-f= re during GIMPLE pass: vrp z1.cc: In function '(static initializers for z1.cc)': z1.cc:11:1: internal compiler error: in get_value_range, at value-query.cc:= 170 11 | } | ^ 0x153dd5b range_query::get_value_range(tree_node const*, gimple*) ../../gcc/value-query.cc:170 0x15a0aee simplify_using_ranges::simplify_casted_cond(gcond*) ../../gcc/vr-values.cc:3720 0x15a3f27 simplify_using_ranges::simplify(gimple_stmt_iterator*) ../../gcc/vr-values.cc:4420 0x14ff342 rvrp_folder::fold_stmt(gimple_stmt_iterator*) ../../gcc/tree-vrp.cc:4321 0x13d34a6 substitute_and_fold_dom_walker::before_dom_children(basic_block_d= ef*) ../../gcc/tree-ssa-propagate.cc:870 0x1f34077 dom_walker::walk(basic_block_def*) ../../gcc/domwalk.cc:311 0x13d2525 substitute_and_fold_engine::substitute_and_fold(basic_block_def*) ../../gcc/tree-ssa-propagate.cc:987 0x14f38dd execute_ranger_vrp(function*, bool) ../../gcc/tree-vrp.cc:4349=