[cfe-commits] r45975 - in /cfe/trunk: Sema/SemaDecl.cpp test/Sema/merge-decls.c

Steve Naroff snaroff at apple.com
Mon Jan 14 14:40:04 PST 2008


On Jan 14, 2008, at 2:34 PM, Neil Booth wrote:

> Steve Naroff wrote:-
>
>> void foo(void);
>> -void foo(void) {} // expected-error{{previous definition is here}}
>> -void foo(void);
>> +void foo(void) {}
>> void foo(void);
>> +void foo(void); // expected-error{{previous definition is here}}
>>
>> void foo(int); // expected-error {{redefinition of 'foo'}}
>
> Those last two are both declarations not definitions; I find the
> diagnostic confusing.
>

Agreed. This is a side-effect of why I wasn't 100% happy with the  
solution.

snaroff

> Neil.




More information about the cfe-commits mailing list