This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/8570] line number in error message is badly placed with illegal template friend declaration
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Nov 2007 00:28:54 -0000
- Subject: [Bug c++/8570] line number in error message is badly placed with illegal template friend declaration
- References: <bug-8570-589@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from manu at gcc dot gnu dot org 2007-11-12 00:28 -------
Subject: Bug 8570
Author: manu
Date: Mon Nov 12 00:28:41 2007
New Revision: 130092
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130092
Log:
2007-11-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c++/8570
cp/
* pt.c (redeclare_class_template): Update error message. Use a
note to show the previous declaration.
(tsubst_friend_class): Use the location of the friend template as
the input location before calling redeclare_class_template.
testsuite/
* g++.old-deja/g++.ns/template13.C: Update expected output.
* g++.old-deja/g++.pt/friend23.C: Likewise.
* g++.dg/warn/pr8570.C: New.
Added:
trunk/gcc/testsuite/g++.dg/warn/pr8570.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.old-deja/g++.ns/template13.C
trunk/gcc/testsuite/g++.old-deja/g++.pt/friend23.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8570