r179430 - Don't replace an existing decl in the scope chains with its

John McCall rjmccall at apple.com
Sun Apr 14 01:57:03 PDT 2013


On Apr 13, 2013, at 6:30 AM, Benjamin Kramer <benny.kra at gmail.com> wrote:
> On 13.04.2013, at 02:20, John McCall <rjmccall at apple.com> wrote:
>> Author: rjmccall
>> Date: Fri Apr 12 19:20:21 2013
>> New Revision: 179430
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=179430&view=rev
>> Log:
>> Don't replace an existing decl in the scope chains with its
>> local-extern redeclaration;  type refinements, default arguments,
>> etc. must all be locally scoped.
> 
> This broke MultiSource/Applications/sgefa.
> 
> Test case:
> void foo() { char *malloc(); }
> void bar() { char *malloc(); }
> 
> This used to compile without error, now complains about "conflicting types for 'malloc'".

This should clear up after r179482.

John.



More information about the cfe-commits mailing list