From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5719A3858D20; Fri, 20 Jan 2023 17:08:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5719A3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674234512; bh=wFvxwj/2EAVHK8SeZ6lyypl4SnQkzL3IHex+WKGr6Fg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mxv35BGkDikTcCihU9PM7WZREwqPyYaNEPt2sLSVnHiqXsMaefVJUo+xJXJAbs0SC 18PXrJR9hNR8iFultWYjwy2y/V6Qe5RMLWNfynbFrBSdpeWb7KiQNHrbWv0u4DvaRv HQ81OP9AzBUNhbmKUw9A8ADd69D5SsqRWhhid0zo= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108382] [12/13 Regression] Incorrect parsing when acc and omp coexist and -fopenmp -fopenacc is used. Date: Fri, 20 Jan 2023 17:08:30 +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: 12.1.0 X-Bugzilla-Keywords: openacc, openmp, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus 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: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc cf_reconfirmed_on bug_status target_milestone short_desc everconfirmed 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=3D108382 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org Last reconfirmed| |2023-01-20 Status|UNCONFIRMED |NEW Target Milestone|--- |12.4 Summary|Incorrect parsing when acc |[12/13 Regression] |and omp coexist and |Incorrect parsing when acc |-fopenmp -fopenacc is used. |and omp coexist and | |-fopenmp -fopenacc is used. Ever confirmed|0 |1 --- Comment #1 from Tobias Burnus --- It seems as if for !$acc enter & !$acc data !$omp flush & !$omp RELEASE a flag is wrong after parsing the second line; I think either the 'openacc_flag' needs to be (re)set to 0 or continue_flag needs to be set to= 0. (likewise for swapping omp and acc lines)=20 Possibly be caused by the following commit as it works with GCC 11 but fails with GCC 12: r12-1216-g4facf2bf5b7b32f444da864306b5c11e14c15bcf=