[PATCH] D17345: [OpenCL] Improve diagnostics of address spaces for variables inside function
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 23 09:52:39 PST 2016
yaxunl 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}}
----------------
this error msg is confusing. better say 'function scope variable with static storage must ...'
http://reviews.llvm.org/D17345
More information about the cfe-commits
mailing list