Commit d0a64ec1 by Joseph Myers Committed by Joseph Myers

pt.c (most_specialized_class): Use ngettext to determine "candidates are:" /…

pt.c (most_specialized_class): Use ngettext to determine "candidates are:" / "candidate is" message.

	* pt.c (most_specialized_class): Use ngettext to determine
	"candidates are:" / "candidate is" message.

From-SVN: r168029
parent 81fada9a
2010-12-18 Joseph Myers <joseph@codesourcery.com>
* pt.c (most_specialized_class): Use ngettext to determine
"candidates are:" / "candidate is" message.
2010-12-17 Jason Merrill <jason@redhat.com>
PR c++/46670
......
......@@ -16512,7 +16512,7 @@ most_specialized_class (tree type, tree tmpl, tsubst_flags_t complain)
if (!(complain & tf_error))
return error_mark_node;
error ("ambiguous class template instantiation for %q#T", type);
str = TREE_CHAIN (list) ? _("candidates are:") : _("candidate is:");
str = ngettext ("candidate is:", "candidates are:", list_length (list));
for (t = list; t; t = TREE_CHAIN (t))
{
error ("%s %+#T", spaces ? spaces : str, TREE_TYPE (t));
......
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