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
! Check OpenMP construct validity for the following directives:
4
+
! 2.21.2 Threadprivate Directive
5
+
6
+
subroutinehost_assoc_fail()
7
+
integer:: i
8
+
! ERROR: A variable that appears in a THREADPRIVATE directive must be declared in the scope of a module or have the SAVE attribute, either explicitly or implicitly
9
+
!$omp threadprivate(i)
10
+
real:: r
11
+
! ERROR: A variable that appears in a THREADPRIVATE directive must be declared in the scope of a module or have the SAVE attribute, either explicitly or implicitly
12
+
!$omp threadprivate(r)
13
+
contains
14
+
subroutineinternal()
15
+
!$omp parallel
16
+
print*, i, r
17
+
!$omp end parallel
18
+
endsubroutine internal
19
+
endsubroutine host_assoc_fail
20
+
21
+
! This sub-test is not supposed to emit a compiler error.
0 commit comments