From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C2D713858C39; Sun, 3 Dec 2023 14:38:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2D713858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701614295; bh=F/F/kJLRc09co9WJFvHL6pGxn4KhQEpt3UnXbgaQrXQ=; h=From:To:Subject:Date:From; b=TkOdz2lc0qJ2VhDxyXsi1ELMuqqQpfHzS2kYcRzcHsE/KOP01mHTMCR8DybgbGYXB dFOwUnXSDl9Wu/m7Ka8AqOMEBEncUievlFiKfH8a3UHxFD8tjrKlOx+QifnyZw0rP1 tcY6iwyGTiSNI5MPitDrKJk+WAefztrpLmhwIxTc= From: "shaohua.li at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112831] New: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767 Date: Sun, 03 Dec 2023 14:38:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: shaohua.li at inf dot ethz.ch 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 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=3D112831 Bug ID: 112831 Summary: ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in type_has_mode_precision_p, at tree.h:6767 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: shaohua.li at inf dot ethz.ch CC: fweimer at redhat dot com Target Milestone: --- gcc at -Os crashes on the test case. Bisected to r14-6034-g4ee2aca7ca0 Compiler explorer: https://godbolt.org/z/6We5qxMbr % cat a.c int a, b; char c; int d() {} void e() { for (; c; c++) { b =3D 0; for (; b <=3D 7; b++) ; for (; (short)(d() + b) + a; a++) ; } } int main() {} % % gcc -Os a.c during GIMPLE pass: sccp a.c: In function =E2=80=98e=E2=80=99: a.c:4:6: internal compiler error: tree check: expected class =E2=80=98type= =E2=80=99, have =E2=80=98exceptional=E2=80=99 (error_mark) in type_has_mode_precision_p, at= tree.h:6767 4 | void e() { | ^ 0x7f47566c3082 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. %=