aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>2004-07-03 02:05:27 +0000
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>2004-07-03 02:05:27 +0000
commite1e93ad8abcabbefa292506d8ae08dd66f9011a2 (patch)
treea871a2a18b057defc7228fc6a5ce79902b679687 /gcc/cp/pt.c
parent96683b8ffde7ce4cea2ddc56c3721e8dc60b8f8a (diff)
downloadgcc-e1e93ad8abcabbefa292506d8ae08dd66f9011a2.zip
gcc-e1e93ad8abcabbefa292506d8ae08dd66f9011a2.tar.gz
gcc-e1e93ad8abcabbefa292506d8ae08dd66f9011a2.tar.bz2
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
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index e7a598b..88a77a5 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -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);