https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94120
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:85d8c05a02bf7d1b256f806582a11e3fd8970a32 commit r10-7810-g85d8c05a02bf7d1b256f806582a11e3fd8970a32 Author: Tobias Burnus <tob...@codesourcery.com> Date: Mon Apr 20 12:38:50 2020 +0200 Fix declare copyout in libgomp.oacc-c++/declare-pr94120.C Testing on the host does not make sense for 'declare copyout' for a same-scope stack-allocated variable. Once the copyout is done, the variable is gone. Hence, test the variable on the device. This can be revisit after the OpenACC semantic has been fixed; but with that fix, the test PASSes again with devices. PR middle-end/94120 * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)' test case.