From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 738EC3858D28; Sun, 12 Nov 2023 14:32:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 738EC3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699799571; bh=KGV71zfpXcghGyJz5MIK01XXKvrzMQjzh+jkLGk01To=; h=From:To:Subject:Date:From; b=BL9svGEwV4kG2e9tv9FdR933JFVspEKSKTfBSP8CNO8RQcOqpWP10ce3nFRS0srrA JyuPBaQaS4tsfNEBJGbdMxyVNlV6WTvpjfb/bzsgQfjyusvvjBYwud1j5GY/jSNXiK B2mG14XZL5ahSK2JYUOlbO3sfkaXYkqDRIJn8yCE= From: "141242068 at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/112495] New: GCC: 14: internal compiler error: verify_gimple failed Date: Sun, 12 Nov 2023 14:32:51 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 141242068 at smail dot nju.edu.cn 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=3D112495 Bug ID: 112495 Summary: GCC: 14: internal compiler error: verify_gimple failed Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- Compiler Explorer: https://gcc.godbolt.org/z/7sM17Pfbb When compile this program with `gcc-14 -O1`, gcc ICEs: ``` typedef struct { int v; } T1; typedef struct { T1 v[32]; } T2; T1 s; T1 f1() { return s; } void f2(__seg_gs T2 *p, int n) { for (int i =3D 0; i < n; ++i) p->v[i] =3D f1(); } ``` Interestingly, if replacing the call of `f1`() by `s` (manual inline f1), t= his crash disappears. The crash output: ``` : In function 'f2': :7:6: error: mismatching comparison operand types 7 | void f2(__seg_gs T2 *p, int n) { | ^~ struct T2 * struct T1 * _22 =3D p_6(D) >=3D _21; :7:6: error: mismatching comparison operand types struct T2 * struct T1 * _27 =3D _26 <=3D &s; during GIMPLE pass: vect :7:6: internal compiler error: verify_gimple failed 0x238b15e internal_error(char const*, ...) ???:0 0x117b6c9 verify_gimple_in_cfg(function*, bool, bool) ???:0 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. Compiler returned: 1 ```=