[patch] Fix pr16247

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Jun 7 07:52:28 PDT 2013


The attached patch implements the restriction:

An entity with C language linkage shall not be declared with
the same name as an entity in global scope, unless both declarations
denote the same entity.

It does it by just avoiding overloading in that case. The existing
error checking for redeclarations then reject the different
signatures.

One part of the patch I am not sure about is the changes to the ObjC
rewriter. It was depending on overloading the extern "C" function
objc_enumerationMutation.

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


More information about the cfe-commits mailing list