From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 849B73858D28; Wed, 18 Jan 2023 22:24:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 849B73858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674080687; bh=Hatjr2Izf9TvcKMfjQYdc1PHURLUHvm7u5XfaDQqIyA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yPoV1Bmh5+ytvEdVI0o1mjLRrvdyT3g0/HSn8a4hVbZUySkKYTnT8KoMEB8RE3rCg GQJRqpViLeCDupUim037gYXhxBMY8X5XfB4q4BDkGa/ZAU9ir6+920nP5AbOFJ3ibC 4QZ9GmQCNFi8hKGKMHkIt41+6ZCeWhK9ea8vY4Qs= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107424] [13 Regression] ICE in gfc_trans_omp_do, at fortran/trans-openmp.cc:5397 - and wrong code - with non-rectangular loops Date: Wed, 18 Jan 2023 22:24:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: accepts-invalid, ice-on-valid-code, openmp, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created 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=3D107424 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #54265|0 |1 is obsolete| | --- Comment #9 from Tobias Burnus --- Created attachment 54300 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54300&action=3Dedit Patch handling some nonrect loops + sorry for others, but being blocked by PR108459 Next attempt for a patch, which handles non-rectangular loops except when a 'count' variable is introduced. For that case, see comment 6 and comment 8. In principle, it is ready for submission, except that now the testcase gcc/testsuite/gfortran.dg/gomp/canonical-loop-1.f90 fails with an ICE (segfault). That seems to be a related but independent issue, also affecting C/C++; now filed as PR middle-end/108459. While independent, it blocks this patch.=