From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C1A53858408; Wed, 7 Feb 2024 14:09:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C1A53858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707314947; bh=JVkToqeeg0OzMQIhYTsLJwBMNrKt5CRJhmKXQu5u0rQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n/cnTt1Xl0YRsesEpbuJ5rcWUelTPNuEBoeJvKyPgKsICY3phItgOYlNzV1k72al1 GySUvuZUYusaogELzaKrqkcSkOfcQOu7IezHEn6wZxJNzPfThqGK4r9SzPoaXgCVrU oNymXlatHSEKxBZeB5lFaoCcZ3RMvRsDhPczEGFg= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113808] [14 Regression] FAIL: libgomp.fortran/non-rectangular-loop-1.f90 since r14-8768 Date: Wed, 07 Feb 2024 14:09:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D113808 --- Comment #6 from Richard Biener --- With the following I don't see things going wrong, but we end up with the l= oop having the STOP exit last instead and thus a PEELED case. function bar (n) result (k) integer :: n, k !$omp simd lastprivate(k) do k =3D 1, n + 41 if (k > 11 + 41 .or. k < 1) error stop end do end program main integer :: n, i,k integer :: bar n =3D 11 k =3D bar (n) if (k /=3D 53) then print *, k, 53 error stop endif end=