]> gcc.gnu.org Git - gcc.git/commit
re PR c++/8570 (line number in error message is badly placed with illegal template...
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 12 Nov 2007 00:28:41 +0000 (00:28 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Mon, 12 Nov 2007 00:28:41 +0000 (00:28 +0000)
commitb131ad7c3db37bb79f21f5f6532447d0e030acaa
tree85e9b9c7db2da544bf03730011a29b03a6bada07
parentacd7ad0afc0e2be08fe6582e2b46299601d6db7e
re PR c++/8570 (line number in error message is badly placed with illegal template friend declaration)

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.

From-SVN: r130092
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr8570.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.ns/template13.C
gcc/testsuite/g++.old-deja/g++.pt/friend23.C
This page took 0.0709 seconds and 5 git commands to generate.