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

Attachment: t.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to