You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Program bug
Real :: x
Common /named_common/ x
x = 1.0
Call sub()
If (x/=1.0) Then
Print *,'FAIL common, x: ',x
Else
Print *,'ok'
End If
contains
Subroutine sub
Real :: x
Common /named_common/ x
!$OMP PARALLEL PRIVATE (/named_common/)
x = 2.0
!$OMP END PARALLEL
End Subroutine
End Program
If I compile and execute this program with the -fopenmp option, I get the output: