[cfe-dev] clang does not support extern for OpenCL

Liu, Yaxun (Sam) Yaxun.Liu at amd.com
Fri Apr 12 14:40:25 PDT 2013

I was trying to compile a simple OpenCL source with clang:

extern int foo(int, int);

I got an error msg:

clang.exe : tmp.cl:1:1: error: OpenCL does not support the 'extern' storage class specifier

OpenCL spec 1.2 says:
The typedef, extern, and static storage-class specifiers are supported.

Is this a bug? Or did I miss anything? Thanks.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130412/686251cf/attachment.html>

More information about the cfe-dev mailing list