[cfe-commits] r45975 - in /cfe/trunk: Sema/SemaDecl.cpp test/Sema/merge-decls.c
Neil Booth
neil at daikokuya.co.uk
Mon Jan 14 14:34:43 PST 2008
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.
Neil.
More information about the cfe-commits
mailing list