OSDN Git Service

* pt.c (most_specialized_class): Use ngettext to determine
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Dec 2010 19:58:57 +0000 (19:58 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Dec 2010 19:58:57 +0000 (19:58 +0000)
"candidates are:" / "candidate is" message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168029 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/pt.c

index b2a9587..8ac637a 100644 (file)
@@ -1,3 +1,8 @@
+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
index 49016b3..c76d381 100644 (file)
@@ -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));