From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 399C53858D20; Mon, 21 Nov 2022 10:51:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 399C53858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669027892; bh=MBpJ0kY5NcP0pnQtHKF7P6xEOV96VFM3Vw2yNTXeDio=; h=From:To:Subject:Date:From; b=CicJnEnEMRaj0zS9PLzMAPPGOENREK2pGv8iGxBq6pdvZYREQAPJC16U1MtlPM5ae +ZfRrMGeOE3+6T3dFQFiReLl/3pYFPJ0amE8Tl7oAqdxaYXkXszEj3zMFh1tFJ+7jd 81XPIc8pDyO5SuT/3vzDLs7nzwvtfPgDEGK3F0EI= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/107788] New: [13 Regression] ICE in wide_int_to_tree_1, at tree.cc:1757 Date: Mon, 21 Nov 2022 10:51:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer 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: dmalcolm 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 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=3D107788 Bug ID: 107788 Summary: [13 Regression] ICE in wide_int_to_tree_1, at tree.cc:1757 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++ 13.0.0 20221120 snapshot (g:a16a5460447eaaff0b4468064e4d7b1cc8fc42eb) I= CEs when compiling libstdc++-v3/testsuite/20_util/bind/placeholders.cc w/ -fanalyzer -fno-early-inlining: % g++-13 -fanalyzer -fno-early-inlining -Ilibstdc++-v3/testsuite/util -c libstdc++-v3/testsuite/20_util/bind/placeholders.cc during IPA pass: analyzer In file included from libstdc++-v3/testsuite/20_util/bind/placeholders.cc:2= 2: libstdc++-v3/testsuite/20_util/bind/placeholders.cc: In function 'void test01()': libstdc++-v3/testsuite/20_util/bind/placeholders.cc:31:20: internal compiler error: in wide_int_to_tree_1, at tree.cc:1757 31 | VERIFY( std::bind(std::minus(), _1, _2)(five, seven) =3D=3D = -2 ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/opt/compiler-test-corpus/gcc-13-20221120/libstdc++-v3/testsuite/util/t= estsuite_hooks.h:64:12: note: in definition of macro 'VERIFY' 64 | if (! (fn))=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ | ^~ 0x88e5f6 wide_int_to_tree_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/tr= ee.cc:1757 0x14c8dcf wide_int_to_tree(tree_node*, poly_int<1u, generic_wide_int > > const&) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/tr= ee.cc:1869 0x14c8dcf build_int_cst(tree_node*, poly_int<1u, long>) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/tr= ee.cc:1509 0x15dfd17 ana::region_model_manager::get_or_create_int_cst(tree_node*, poly_int<1u, long>) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/region-model-manager.cc:236 0x15beae0 ana::region_model::update_for_int_cst_return(ana::call_details const&, int, bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/region-model.cc:1934 0x15fa781 on_bind =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/sm-fd.cc:1874 0x15fa781 ana::region_model::on_bind(ana::call_details const&, bool) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/sm-fd.cc:2284 0x15d6b76 ana::kf_bind::outcome_of_bind::update_model(ana::region_model*, ana::exploded_edge const*, ana::region_model_context*) const =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/region-model-impl-calls.cc:630 0x159821e ana::exploded_graph::process_node(ana::exploded_node*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/engine.cc:4170 0x1598d7a ana::exploded_graph::process_worklist() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/engine.cc:3457 0x159b504 ana::impl_run_checkers(ana::logger*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/engine.cc:6110 0x159c506 ana::run_checkers() =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/engine.cc:6198 0x158ae08 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20221120/work/gcc-13-20221120/gcc/an= alyzer/analyzer-pass.cc:87 I'll try to reduce the testcase later today.=