From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D9553858D20; Tue, 2 May 2023 11:19:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D9553858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683026352; bh=MvOnoBJyeT34jBelUE2o4WreV1MpJX/oF55M18u7tYc=; h=From:To:Subject:Date:From; b=JqTtCqhKlizJQ/XKhPL3EpljZoy2MejTrC1t6CykFPJFAhCfgWa+YPY7UMDwGBg8q D7/x4TBQz/QuMs1xF08PWE6drX/WgRRrxZCW8/AqqznmOSwCa9+lwvCIllaAm5qq8g zuMotBm2VCZaT/zbtId9DYabzJ3xn09xn/3cH0QE= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109696] New: ice: tree check fail Date: Tue, 02 May 2023 11:19: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: dcb314 at hotmail 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 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=3D109696 Bug ID: 109696 Summary: ice: tree check fail Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- For this C code: sprint_tm(long ns) { char buf; double t =3D ns; if (t) sprintf(buf, ""); } wait_for_reply_avg() { sprint_tm(wait_for_reply_avg); } compiled by recent trunk gcc, does this: $ ~/gcc/results.20230502.asan.ubsan/bin/gcc -c -w -O2 bug915.c during IPA pass: inline bug915.c:7:1: internal compiler error: tree check: expected class =E2=80=98= type=E2=80=99, have =E2=80=98exceptional=E2=80=99 (error_mark) in verify_range, at value-range.= cc:1060 7 | wait_for_reply_avg() { sprint_tm(wait_for_reply_avg); } | ^~~~~~~~~~~~~~~~~~ 0x115a4fa tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ../../trunk.year/gcc/tree.cc:8948 0x1183d13 tree_class_check(tree_node*, tree_code_class, char const*, int, c= har const*) ../../trunk.year/gcc/tree.h:3663 0x1183d13 irange::verify_range() ../../trunk.year/gcc/value-range.cc:1060 It was fine yesterday: $ ~/gcc/results.20230501.asan.ubsan/bin/gcc -c -w -O2 bug915.c $ I suspect this is another one for Aldy.=