[PATCH] D112110: [OpenCL] queue_t and ndrange_t can't be defined in program scope.

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 8 04:06:19 PST 2021


Anastasia added inline comments.


================
Comment at: clang/test/SemaOpenCL/invalid-types.cl:5
+// Test declare "Other Data Type" variables in program scope.
+global queue_t qt; // expected-error {{the '__global queue_t' type cannot be used to declare a program scope variable}}
+
----------------
if you create a type alias through typedef for `queue_t` or `ndrange_t`, will you still get the diagnostic?



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112110/new/

https://reviews.llvm.org/D112110



More information about the cfe-commits mailing list