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:
parent
0d430c965d
commit
8653a2c31c
@ -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.
|
||||
|
@ -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'";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user