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'.