[PATCH] D17345: [OpenCL] Improve diagnostics of address spaces for variables inside function
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 24 09:57:00 PST 2016
Anastasia added inline comments.
================
Comment at: test/SemaOpenCL/storageclass-cl20.cl:11
@@ -10,3 +10,3 @@
static global int S2 = 5;
- static private int S3 = 5;// expected-error{{program scope variable must reside in global or constant address space}}
+ static private int S3 = 5; // expected-error{{program scope variable must reside in global or constant address space}}
----------------
yaxunl wrote:
> this error msg is confusing. better say 'function scope variable with static storage must ...'
Yes, I agree. The error message is not ideal. I will think of better wording here.
http://reviews.llvm.org/D17345
More information about the cfe-commits
mailing list