diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-11-12 00:28:41 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2007-11-12 00:28:41 +0000 |
commit | b131ad7c3db37bb79f21f5f6532447d0e030acaa (patch) | |
tree | 85e9b9c7db2da544bf03730011a29b03a6bada07 /libcpp/files.c | |
parent | acd7ad0afc0e2be08fe6582e2b46299601d6db7e (diff) | |
download | gcc-b131ad7c3db37bb79f21f5f6532447d0e030acaa.zip gcc-b131ad7c3db37bb79f21f5f6532447d0e030acaa.tar.gz gcc-b131ad7c3db37bb79f21f5f6532447d0e030acaa.tar.bz2 |
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
Diffstat (limited to 'libcpp/files.c')
0 files changed, 0 insertions, 0 deletions