diff options
author | Brendan Kehoe <brendan@cygnus.com> | 1998-05-18 12:21:29 +0000 |
---|---|---|
committer | Brendan Kehoe <brendan@gcc.gnu.org> | 1998-05-18 08:21:29 -0400 |
commit | 4a95fafeda4731aba81d44ac49e0468599ebe2dc (patch) | |
tree | c0d1e3448e68b903374c070dd7ca86a90041e8a8 | |
parent | 069b95ce6dc86b9ef2a8bd3341e420d2f81c6111 (diff) | |
download | gcc-4a95fafeda4731aba81d44ac49e0468599ebe2dc.zip gcc-4a95fafeda4731aba81d44ac49e0468599ebe2dc.tar.gz gcc-4a95fafeda4731aba81d44ac49e0468599ebe2dc.tar.bz2 |
pt.c (redeclare_class_template): Say where the original definition of the template-parameter's default argument...
* pt.c (redeclare_class_template): Say where the original definition
of the template-parameter's default argument appeared.
From-SVN: r19851
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/pt.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ef93701..0150d02 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Mon May 18 12:20:27 1998 Brendan Kehoe <brendan@cygnus.com> + + * pt.c (redeclare_class_template): Say where the original definition + of the template-parameter's default argument appeared. + Mon May 18 03:00:57 1998 Jason Merrill <jason@yorick.cygnus.com> * call.c (build_over_call): Tweak empty class handling. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index d179327..af27280 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1934,6 +1934,7 @@ redeclare_class_template (type, parms) A template-parameter may not be given default arguments by two different declarations in the same scope. */ cp_error ("redefinition of default argument for `%#D'", parm); + cp_error_at (" original definition appeared here", tmpl_parm); return; } |