c-decl.c overhaul (1/3) Refactor duplicate_decls
Joseph S. Myers
jsm@polyomino.org.uk
Sun Jan 11 17:19:00 GMT 2004
On Sat, 10 Jan 2004, Zack Weinberg wrote:
> + inform ("a parameter list with an ellipsis can't match"
> + "an empty parameter name list declaration");
This message (and the one below it) is missing a space between the two
concatenated parts of the string. A testcase also gets the messages
duplicated:
void f();
void f(int, ...);
gets
t.c:2: error: conflicting types for 'f'
t.c:2: note: a parameter list with an ellipsis can't matchan empty parameter name list declaration
t.c:1: error: previous declaration of 'f' was here
t.c:2: error: conflicting types for 'f'
t.c:2: note: a parameter list with an ellipsis can't matchan empty parameter name list declaration
t.c:1: error: previous declaration of 'f' was here
whereas 3.3.2 only gives the messages once.
--
Joseph S. Myers
jsm@polyomino.org.uk
More information about the Gcc-patches
mailing list