* pt.c (most_specialized_class): Use ngettext to determine
"candidates are:" / "candidate is" message.
From-SVN: r168029
+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
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));