gcc/testsuite/gfortran.dg/gomp/pr114825.f90
raw| 1 | ! PR fortran/114825 |
| 2 | |
| 3 | subroutine pr114825(b) |
| 4 | type t |
| 5 | real, allocatable :: m(:) |
| 6 | end type t |
| 7 | type(t), allocatable, target :: b(:) |
| 8 | type(t), pointer :: d |
| 9 | !$omp parallel private(d) |
| 10 | d => b(1) |
| 11 | !$omp end parallel |
| 12 | contains |
| 13 | subroutine sub |
| 14 | d => b(1) |
| 15 | end subroutine sub |
| 16 | end subroutine pr114825 |