Fortran/OpenMP: Accept implicit-save DATA vars for threadprivate [PR99514]
authorTobias Burnus <tobias@codesourcery.com>
Fri, 12 Mar 2021 15:34:10 +0000 (16:34 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 12 Mar 2021 15:34:10 +0000 (16:34 +0100)
commitd0655763483008a421608d059cf26c93077621a9
treef6ef42255470abe12c09f3414a977a5813d6985e
parent0b5437510c13dc0879349a4f259c800d2ce02eb2
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.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/gomp/threadprivate-1.f90 [new file with mode: 0644]