Commit 4a95fafe by Brendan Kehoe Committed by Brendan Kehoe

pt.c (redeclare_class_template): Say where the original definition of the…

pt.c (redeclare_class_template): Say where the original definition of the template-parameter's default argument...

	* pt.c (redeclare_class_template): Say where the original definition
	of the template-parameter's default argument appeared.

From-SVN: r19851
parent 069b95ce
Mon May 18 12:20:27 1998 Brendan Kehoe <brendan@cygnus.com>
* pt.c (redeclare_class_template): Say where the original definition
of the template-parameter's default argument appeared.
Mon May 18 03:00:57 1998 Jason Merrill <jason@yorick.cygnus.com>
* call.c (build_over_call): Tweak empty class handling.
......
......@@ -1934,6 +1934,7 @@ redeclare_class_template (type, parms)
A template-parameter may not be given default arguments
by two different declarations in the same scope. */
cp_error ("redefinition of default argument for `%#D'", parm);
cp_error_at (" original definition appeared here", tmpl_parm);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment