re PR c++/14971 (better error message for partial specialization of function templates requested)

PR c++/14971
        * pt.c (check_explicit_specialization): Clarify error message.

From-SVN: r84043
This commit is contained in:
Giovanni Bajo 2004-07-03 02:05:27 +00:00
parent 96683b8ffd
commit e1e93ad8ab
2 changed files with 7 additions and 2 deletions

View 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.

View 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);