From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 266AE385DC14; Fri, 9 Apr 2021 16:06:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 266AE385DC14 From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/84991] [openacc] Misleading error message for function static var in routine Date: Fri, 09 Apr 2021 16:06:17 +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: 8.0 X-Bugzilla-Keywords: openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: SUSPENDED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tschwinge at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed assigned_to see_also bug_status cf_reconfirmed_on 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2021 16:06:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84991 Thomas Schwinge changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |tschwinge at gcc do= t gnu.org See Also| |https://github.com/OpenACC/ | |openacc-spec/issues/372 Status|UNCONFIRMED |SUSPENDED Last reconfirmed| |2021-04-09 --- Comment #3 from Thomas Schwinge --- (In reply to Tom de Vries from comment #0) > The openacc spec tells us at 2.15.1. Routine Directive: > ... > In C and C++, function static variables are not supported in functions to > which a routine directive applies. > ... >=20 > When compiling such an example with -fopenacc: > [...] ... this now works as expected. Current behavior documented via commit ffa0ae6eeef3ad15d3f288283e4c47719305= 2f1a "Add 'libgomp.oacc-c-c++-common/static-variable-1.c' [PR84991, PR84992, PR90779]". See ; waiting for OpenACC specification, thus setting "suspended" here.=