From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E8B893858D28; Sun, 31 Jul 2022 20:23:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8B893858D28 From: "sandra at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/106492] New: ICE in #pragma omp for simd Date: Sun, 31 Jul 2022 20:23:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sandra at gcc dot gnu.org 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2022 20:23:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106492 Bug ID: 106492 Summary: ICE in #pragma omp for simd Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: sandra at gcc dot gnu.org Target Milestone: --- This is similar to PR106449; adding the simd keyword to an existing omp for test case causes an ICE related to incompatible types. Test case is derived from g++.dg/gomp/pr95063.C: // PR c++/95063 template struct S { T a : 12; S () : a(0) { #pragma omp for simd linear(a) for (int k =3D 0; k < 64; ++k) a++; } }; struct U { int a : 12; U () : a(0) { #pragma omp for simd linear(a) for (int k =3D 0; k < 64; ++k) a++; } }; S s; U u; $ x86_64-none-linux-gnu-g++ -fopenmp pr95063.C -S pr95063.C: In constructor 'U::U()': pr95063.C:19:8: error: type mismatch in binary expression 19 | a++; | ~^~ int a =3D a + D.2648; during GIMPLE pass: omplower pr95063.C:19:8: internal compiler error: 'verify_gimple' failed 0x1295c9d verify_gimple_in_seq(gimple*) /path/to/gcc/tree-cfg.cc:5220 0x1167b60 execute_function_todo /path/to/gcc/passes.cc:2093 0x1167fdb execute_todo /path/to/gcc/passes.cc:2145 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.=