[Bug fortran/69090] Allocatable arrays mishandled in 'omp declare target'

amonakov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 2 14:06:00 GMT 2016


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

--- Comment #5 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Ilya, 'omp declare target' is not applicable to arrays with automatic storage,
is it? The array needs to be either global, or have the SAVE attribute (similar
to 'static' keyword for local vars in C) — either way it would be statically
allocated (the array describing structure, not the variably allocatable data).
In fact, my example does use a local, SAVE'd array.

Thanks for the reference! I didn't recall that thread when filing this bug. Odd
that it "works" without the 'declare target'.


More information about the Gcc-bugs mailing list