[cfe-commits] r71957 - in /cfe/trunk: lib/CodeGen/CodeGenModule.cpp test/CodeGenCXX/extern-c.cpp test/CodeGenCXX/mangle.cpp

Anders Carlsson andersca at mac.com
Mon May 18 11:47:53 PDT 2009


On May 18, 2009, at 11:32 AM, Douglas Gregor wrote:

> Hmmm... does this work properly for
>
> 	extern "C++" int var1;
>

t.cpp:1:8: error: cannot compile this linkage spec yet
extern "C++" int var1;
        ^
:)

But I think I'll add a  VarDecl::hasExternLinkage()  that checks both  
the storage class and if it's in any extern linkage context.

Anders




More information about the cfe-commits mailing list