https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94874
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This is something that is handled by lang_hooks.decls.omp_predetermined_sharing some FEs need to treat all DECL_ARTIFICIAL decls that way, others perhaps a subset of them.