Commit f49d8c52 by Volker Reichelt Committed by Volker Reichelt

re PR translation/21768 (ICE in error message due to violation of coding conventions)

	PR c++/21768
	* pt.c (redeclare_class_template): Change error message according
	to coding conventions.

From-SVN: r100206
parent 10d877a8
2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de> 2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/21768
* pt.c (redeclare_class_template): Change error message according
to coding conventions.
2005-05-26 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* call.c (build_op_delete_call): Fix quoting in error message. * call.c (build_op_delete_call): Fix quoting in error message.
2005-05-25 Richard Henderson <rth@redhat.com> 2005-05-25 Richard Henderson <rth@redhat.com>
......
...@@ -3225,9 +3225,8 @@ redeclare_class_template (tree type, tree parms) ...@@ -3225,9 +3225,8 @@ redeclare_class_template (tree type, tree parms)
if (TREE_VEC_LENGTH (parms) != TREE_VEC_LENGTH (tmpl_parms)) if (TREE_VEC_LENGTH (parms) != TREE_VEC_LENGTH (tmpl_parms))
{ {
cp_error_at ("previous declaration %qD", tmpl); cp_error_at ("previous declaration %qD", tmpl);
error ("used %d template parameter%s instead of %d", error ("used %d template parameter(s) instead of %d",
TREE_VEC_LENGTH (tmpl_parms), TREE_VEC_LENGTH (tmpl_parms),
TREE_VEC_LENGTH (tmpl_parms) == 1 ? "" : "s",
TREE_VEC_LENGTH (parms)); TREE_VEC_LENGTH (parms));
return; 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