diff options
author | Giovanni Bajo <giovannibajo@gcc.gnu.org> | 2004-07-03 02:05:27 +0000 |
---|---|---|
committer | Giovanni Bajo <giovannibajo@gcc.gnu.org> | 2004-07-03 02:05:27 +0000 |
commit | e1e93ad8abcabbefa292506d8ae08dd66f9011a2 (patch) | |
tree | a871a2a18b057defc7228fc6a5ce79902b679687 /gcc | |
parent | 96683b8ffde7ce4cea2ddc56c3721e8dc60b8f8a (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/pt.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index dbd0ac7..cd5dc66 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. 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); |