From 8653a2c31c54e8bd1f77ed931f5d5ecdccfa1106 Mon Sep 17 00:00:00 2001 From: Phil Edwards Date: Wed, 28 Mar 2001 00:44:39 +0000 Subject: [PATCH] pt.c (check_default_tmpl_args): Make error messages clearer. 2001-03-27 Phil Edwards * pt.c (check_default_tmpl_args): Make error messages clearer. From-SVN: r40889 --- gcc/cp/ChangeLog | 8 ++++++++ gcc/cp/pt.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7e155295be6..9fb4bfce7d6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,11 @@ +2001-03-27 Phil Edwards + + * pt.c (check_default_tmpl_args): Make error messages clearer. + +2001-03-26 Phil Edwards + + * error.c: Also undefine 'A' macro used for cp_printers definition. + 2001-03-27 Kaveh R. Ghazi * Make-lang.in: Depend on $(SYSTEM_H), not system.h. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e4e647167da..24bdff42ab9 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -2432,9 +2432,9 @@ check_default_tmpl_args (decl, parms, is_primary, is_partial) /* Figure out what error message to issue. */ if (TREE_CODE (decl) == FUNCTION_DECL) - msg = "default argument for template parameter in function template `%D'"; + msg = "default template arguments may not be used in function templates"; else if (is_partial) - msg = "default argument in partial specialization `%D'"; + msg = "default template arguments may not be used in partial specializations"; else msg = "default argument for template parameter for class enclosing `%D'"; -- 2.30.2