https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99514
--- Comment #4 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:d0655763483008a421608d059cf26c93077621a9 commit r11-7649-gd0655763483008a421608d059cf26c93077621a9 Author: Tobias Burnus <tob...@codesourcery.com> Date: Fri Mar 12 16:34:10 2021 +0100 Fortran/OpenMP: Accept implicit-save DATA vars for threadprivate [PR99514] gcc/fortran/ChangeLog: PR fortran/99514 * resolve.c (resolve_symbol): Accept vars which are in DATA and hence (either) implicit SAVE (or in common). gcc/testsuite/ChangeLog: PR fortran/99514 * gfortran.dg/gomp/threadprivate-1.f90: New test.