[Bug middle-end/84992] [openacc] function static var in parallel

vries at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 21 14:19:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84992

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #0)
> 
> But the first question here is: is this a valid openacc program?
> 
> Given that function static variables are not supported in functions to which
> a routine directive applies, are function static variables supported in
> parallel regions, or not?
> 
> If not, we should emit a proper error message.
> 
> If so, we should implement the required semantics.

With the PGI compiler, we can compile and run the program.


More information about the Gcc-bugs mailing list