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:
parent
96683b8ffd
commit
e1e93ad8ab
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user