pt.c (redeclare_class_template): Say where the original definition of the template...
authorBrendan Kehoe <brendan@cygnus.com>
Mon, 18 May 1998 12:21:29 +0000 (12:21 +0000)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Mon, 18 May 1998 12:21:29 +0000 (08:21 -0400)
* pt.c (redeclare_class_template): Say where the original definition
of the template-parameter's default argument appeared.

From-SVN: r19851

gcc/cp/ChangeLog
gcc/cp/pt.c

index ef937012497558cb9100442a4fcde5171b8fff11..0150d028d2b921a37c90ee54ae80d34de26f9b44 100644 (file)
@@ -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.
index d1793279b8d1c3180cd885219d91acad3bc50bce..af27280b6e2b3886f4555f533c064edf24c8c157 100644 (file)
@@ -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;
        }