From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 833533858C36; Wed, 6 Mar 2024 18:14:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 833533858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709748875; bh=3EOz4KRnjp3aG/yiX1o7nCZ3eqneYh9E9TpHS9uMjts=; h=From:To:Subject:Date:From; b=NHSD83lmevQPbekdc9vR9SrG3PIfGVvAmoFThkEn/WURcBgYY/4e8EQfBt3t8aM02 lMpcbU93rn0YlvflGEGXfpomaKx5DEwS7faZavzKoAvJnsygjch74LGjzb1+S6nLYQ kM1A7XzXSnUefOOFA7IZYp5NKStZ7PWwZJvRJbTk= From: "patrick at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114259] New: [14 Regression] ICE during GIMPLE pass: slp: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:85 Date: Wed, 06 Mar 2024 18:14:34 +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: patrick at rivosinc 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 attachments.created 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=3D114259 Bug ID: 114259 Summary: [14 Regression] ICE during GIMPLE pass: slp: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:85 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: patrick at rivosinc dot com Target Milestone: --- Created attachment 57637 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57637&action=3Dedit -freport-bug output Testcase: Testcase: long h; int i; char j; short volatile k; void l() { i =3D h =3D 0; for (; h < 7; h =3D h +=3D 1) i ^=3D (0 !=3D k) + (long)j; } Backtrace: > /scratch/tc-testing/tc-mar-5/build-rv64gcv/bin/riscv64-unknown-linux-gnu-= gcc -march=3Drv64gcv -O3 red.c -o red.out during GIMPLE pass: slp ./red.c: In function 'l': ./red.c:6:6: internal compiler error: tree check: expected class 'type', ha= ve 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.cc:= 85 6 | void l() { | ^ 0xb0f001 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ../../../gcc/gcc/tree.cc:9005 0xa38bd5 tree_class_check(tree_node*, tree_code_class, char const*, int, ch= ar const*) ../../../gcc/gcc/tree.h:3767 0xa38bd5 useless_type_conversion_p(tree_node*, tree_node*) ../../../gcc/gcc/gimple-expr.cc:85 0x1365242 verify_gimple_assign_binary ../../../gcc/gcc/tree-cfg.cc:4305 0x13704ee verify_gimple_in_cfg(function*, bool, bool) ../../../gcc/gcc/tree-cfg.cc:5599 0x11f1b10 execute_function_todo ../../../gcc/gcc/passes.cc:2088 0x11f205b execute_todo ../../../gcc/gcc/passes.cc:2142 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. Godbolt: https://godbolt.org/z/s1M1WcGvc Looks like a recent regression (within 2 days) since the fuzzer found ~10 instances of this failure last night. Found via fuzzer.=