[cfe-commits] [patch][pr14766] Reject invalid redeclarations of extern C functions and variables
Rafael EspĂndola
rafael.espindola at gmail.com
Mon Jan 7 21:41:23 PST 2013
When processing the second g in
extern "C" {
void f() {
extern void g(int);
}
}
int g(int);
we first check if it is extern C and then look for non visible
extern-C declarations. So in this example we don't do the lookup at
all. The attached patch fixes this by doing the lookup and checking if
the found decl is extern C.
Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 3980 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130108/3d67e5e7/attachment.obj>
More information about the cfe-commits
mailing list