pt.c (check_default_tmpl_args): Make error messages clearer.

2001-03-27  Phil Edwards  <pme@sources.redhat.com>

	* pt.c (check_default_tmpl_args):  Make error messages clearer.

From-SVN: r40889
This commit is contained in:
Phil Edwards 2001-03-28 00:44:39 +00:00
parent 0d430c965d
commit 8653a2c31c
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2001-03-27 Phil Edwards <pme@sources.redhat.com>
* pt.c (check_default_tmpl_args): Make error messages clearer.
2001-03-26 Phil Edwards <pme@sources.redhat.com>
* error.c: Also undefine 'A' macro used for cp_printers definition.
2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Make-lang.in: Depend on $(SYSTEM_H), not system.h.

View File

@ -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'";