https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118478
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Tobias Burnus from comment #3) > Thus, if 'firstprivate' is not on target, we have to use the > C++ copy constructor and Fortran defined assignments. Unless you have a proof, I think we already do that (not sure about Fortran, but at least we use the corresponding target hook). > For 'firstprivate' on target, the simplest is probably to > keep using the current code, i.e. not invoking any copy > constructor/defined assignment - albeit at least for > 'omp requires self_maps' (and, possibly, unified_shared_memory) > we could invoke it on the host - as the memory is device accessible, > albeit possibly slower (topic of shared memory controller vs. remote > access or memory-page migration). Yes.