From e1e93ad8abcabbefa292506d8ae08dd66f9011a2 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Sat, 3 Jul 2004 02:05:27 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/pt.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index dbd0ac78953..cd5dc6644bd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-07-03 Giovanni Bajo + + PR c++/14971 + * pt.c (check_explicit_specialization): Clarify error message. + 2004-07-02 Richard Henderson * tree.c (cp_unsave_r): Update remap_save_expr call. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e7a598bc38b..88a77a5b80c 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1690,8 +1690,8 @@ check_explicit_specialization (tree declarator, template void f(); */ 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); -- 2.30.2