From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB1FD3858CDB; Fri, 12 Apr 2024 03:00:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB1FD3858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712890854; bh=UmTC51RoaTK2O15LOvqAJ8PovQbdNM2ErRaSdjFaa2s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cje4L3CMf1qE/ifiUKCysyJ2Q/LRyX8n3Cg1127kPx2mJ7VKfdeu4/8w+fkqYPwbU DG7CffOVURbIaPEDcV6B+bvTG67NV0id7S0GtTPVZ+u9ZSSUBnIOxAzEbKEfJZFUVx JOslTUmRtvJnmLH4sktuC8r0VM00n8LrIWIXFo+8= From: "sandra at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113904] [OpenMP][5.0][5.1] Dynamic context selector 'user={condition(expr)}' not handled Date: Fri, 12 Apr 2024 03:00:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: accepts-invalid, openmp, rejects-valid, wrong-code 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: 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=3D113904 --- Comment #6 from sandra at gcc dot gnu.org --- On further investigation, it appears that both the C and C++ front ends are= at=20 least attempting to parse the context selectors in the correct scope, altho= ugh C++ trips over a "use of parameter outside function body" error. If that's fixed, a code walk would find these things easily enough. I guess we'd only want to do the function wrapper around the expression if it actually refere= nces parameters? Certainly not for constants, at least. I'd need help figuring out what to do for Fortran as I'm less familiar both with the language semantics and the front end implementation. I guess there are additional complications due to supporting nested functions/modules.=