[patch] Error if an extern "C" declaration matches a previous hidden extern "C" declaration

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Mar 11 19:13:45 PDT 2013


Without this patch we produce an error for


extern "C" {
  void f() {
    extern int b;
  }
}

extern "C" {
  extern float b;
}


but not for

extern "C" {
  void f() {
    extern int b;
  }
}

extern "C" {
  float b;
}


Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 1234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130311/98a458ef/attachment.obj>


More information about the cfe-commits mailing list