From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0F8683858005; Mon, 8 May 2023 14:27:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F8683858005 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683556064; bh=hua6Zmb76quEkzR5GA8ZomnyVc+NSH7GkTJwRe/fowA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MxnPFPJ9FjukU4ltmtdseo9yGoPTA4KMk28qS5YESW84V0lmowZnP2Wh8x3kL7iPi ZIOVK0Dm0Cp6M5SXPazC2vl3PpJ8RHoD/iY4cI1FnElw+osaCPuSvycZyQPIYS43/W fJQLoJiRHErU98wl8yJq6Q5gWD2LEWi9XouzUR5Q= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109767] [OpenMP][5.2] Missing loop-variable privatization inside 'teams' Date: Mon, 08 May 2023 14:27:43 +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: 13.0 X-Bugzilla-Keywords: openmp, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: cc 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=3D109767 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- Note, it is a Fortran only rule. So, shared(j) on teams-loop-var.c is fully correct. And, looking at Fortran, I already see it being private (by fortran/openmp.= cc (gfc_resolve_do_iterator)). Thus, I don't see anything that needs to be done here.=