Commit e1e93ad8 by Giovanni Bajo

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
parent 96683b8f
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> 2004-07-02 Richard Henderson <rth@redhat.com>
* tree.c (cp_unsave_r): Update remap_save_expr call. * tree.c (cp_unsave_r): Update remap_save_expr call.
......
...@@ -1690,8 +1690,8 @@ check_explicit_specialization (tree declarator, ...@@ -1690,8 +1690,8 @@ check_explicit_specialization (tree declarator,
template <class T> void f<int>(); */ template <class T> void f<int>(); */
if (uses_template_parms (declarator)) if (uses_template_parms (declarator))
error ("partial specialization `%D' of function template", error ("function template partial specialization `%D' "
declarator); "is not allowed", declarator);
else else
error ("template-id `%D' in declaration of primary template", error ("template-id `%D' in declaration of primary template",
declarator); declarator);
......
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