[cfe-dev] Wrong extern inside no braces linkage specification declaration
Abramo Bagnara
abramo.bagnara at gmail.com
Sun Apr 25 13:57:58 PDT 2010
Currently clang marks these two declarations
extern "C" int a;
extern "C" void foo();
as extern in StorageClassAsWritten, but the inner declarations does not
have any storage class specified (and C++ standard does not allow any).
The attached patch wrt r102259 fixes the problem (and do not introduce
any regressions).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkage-extern.patch
Type: text/x-patch
Size: 4952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100425/89784c3d/attachment.bin>
More information about the cfe-dev
mailing list