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
[OpenACC] Fix 'type' checks in private/firstprivate for array types
These would not give a correct initializer, but they are not possible
to generate correctly anyway, so this patch makes sure we look through
the array type to correctly diagnose these.
// expected-error@+1{{variable of type 'ImplDeletedCtor' referenced in OpenACC 'private' clause does not have a default constructor; reference has no effect}}
136
+
#pragma acc parallel private(IDCArr)
137
+
;
138
+
#pragma acc parallel private(DefCArr)
139
+
;
140
+
#pragma acc parallel private(ICArr)
141
+
;
142
+
// expected-error@+1{{variable of type 'DeletedCtor' referenced in OpenACC 'private' clause does not have a default constructor; reference has no effect}}
143
+
#pragma acc parallel private(DelCArr)
144
+
;
145
+
#pragma acc parallel private(IDArr)
146
+
;
147
+
#pragma acc parallel private(DefDArr)
148
+
;
149
+
// expected-error@+1{{variable of type 'DeletedDtor' referenced in OpenACC 'private' clause does not have a destructor; reference has no effect}}
150
+
#pragma acc parallel private(DelDArr)
151
+
;
152
+
// expected-error@+1{{variable of type 'ImplicitDelDtor' referenced in OpenACC 'private' clause does not have a destructor; reference has no effect}}
// expected-error@+1{{variable of type 'DeletedDtor' referenced in OpenACC 'firstprivate' clause does not have a destructor; reference has no effect}}
263
+
#pragma acc parallel firstprivate(DelDArr)
264
+
;
265
+
// expected-error@+1{{variable of type 'ImplicitDelDtor' referenced in OpenACC 'firstprivate' clause does not have a copy constructor; reference has no effect}}
266
+
#pragma acc parallel firstprivate(IDDArr)
267
+
;
268
+
// expected-error@+1{{variable of type 'DeletedCopy' referenced in OpenACC 'firstprivate' clause does not have a copy constructor; reference has no effect}}
0 commit comments