re PR c++/14971 (better error message for partial specialization of function template...
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sat, 3 Jul 2004 02:05:27 +0000 (02:05 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sat, 3 Jul 2004 02:05:27 +0000 (02:05 +0000)
        PR c++/14971
        * pt.c (check_explicit_specialization): Clarify error message.

From-SVN: r84043

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

index dbd0ac78953561fd0ee23e5b73b2ba0cca15b598..cd5dc6644bd19ea148390f0f9d80b85c943db20c 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-03  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
+
+       PR c++/14971
+       * pt.c (check_explicit_specialization): Clarify error message.
+
 2004-07-02  Richard Henderson  <rth@redhat.com>
 
        * tree.c (cp_unsave_r): Update remap_save_expr call.
index e7a598bc38be85ac135bac943ed8b4b670d37087..88a77a5b80ceefcffa0f9422bd386fdbfd66a5ab 100644 (file)
@@ -1690,8 +1690,8 @@ check_explicit_specialization (tree declarator,
             template <class T> void f<int>(); */
 
          if (uses_template_parms (declarator))
-           error ("partial specialization `%D' of function template",
-                     declarator);
+           error ("function template partial specialization `%D' "
+                  "is not allowed", declarator);
          else
            error ("template-id `%D' in declaration of primary template",
                      declarator);