This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c-decl.c overhaul (1/3) Refactor duplicate_decls


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]