[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
Thu Dec 2 05:00:23 PST 2021
Anastasia added inline comments.
Herald added a subscriber: Naghasan.
================
Comment at: clang/test/SemaOpenCL/invalid-types.cl:10
+
+typedef image2d_t test;
+global test qtt; // expected-error {{the '__global ndrange_t' type cannot be used to declare a program scope variable}}
----------------
Did you mean to use `ndrange_t` or `queue_t` here? Otherwise, it doesn't seem that your commit is related to the image types...
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112110/new/
https://reviews.llvm.org/D112110
More information about the cfe-commits
mailing list