2022-11-04 09:35:42 -07:00

14 lines
312 B
Fortran

! @@name: associate.1
! @@type: F-fixed
! @@operation: compile
! @@expect: ct-error
! @@version: omp_4.0
program example_broken
real :: a, c
associate (b => a)
!$omp parallel private(b, c) ! invalid to privatize b
c = 2.0*b
!$omp end parallel
end associate
end program