From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 582823857400; Fri, 8 Mar 2024 13:00:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 582823857400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709902831; bh=eEMV+KOEASINHVXbLsp4faj9mGyuNth83oF/nE2vbZc=; h=From:To:Subject:Date:From; b=spI1VnJalG898VLIyf/8UsGlcw4ATMmWyIuj0C7PBSTRcOKtIZgJf5uIZBi4feWz4 n35sSkV6ysVTaPhv4eoUv//ERVT+6IWuQeSh1iUU041ylsK1SUVaBbKqMRlv5bv+2w FITKqzf7WOgt54LeIQWFl/iyyKI+Ron6BAy20Iq8= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114283] New: [OpenMP] Dummy procedures/proc pointers and 'defaultmap', 'default', 'firstprivate' etc. Date: Fri, 08 Mar 2024 13:00:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus 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 keywords 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114283 Bug ID: 114283 Summary: [OpenMP] Dummy procedures/proc pointers and 'defaultmap', 'default', 'firstprivate' etc. Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- See also OpenMP specification Issue #3823 [and slightly related PR 114282]. There are two cases: (A) Dummy procedures IMHO those aren't variables and gfortran also rejects them when used in firstprivate, map, shared etc. ("Object 'f1' is not a variable"). However, gfortran does complain with 'default(none)': Error: 'f1' not specified in enclosing 'target' Note: 'default(none)' does not diagnose it. EXPECTED: There is no diagnosis for 'defaultmap(none)'. (B) Procedure pointers Here it is unclear whether it should be regarded as variable or not; gfortr= an treats those as variables. Depends on OpenMP specification Issue #3823. It seems as if handling it as variable, but using 'firstprivate' as default= for implicit mapping makes most sense. =E2=80=93 But also treating it as non-va= riable would make sense.=