re PR c++/29020 (ICE using A<N>::A instead of A<N> in friend declaration)
authorMark Mitchell <mark@codesourcery.com>
Wed, 4 Oct 2006 06:53:55 +0000 (06:53 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 4 Oct 2006 06:53:55 +0000 (06:53 +0000)
commit1cd7d7bf707cf5c6ecdf223de4175c5a6d01ca7c
treeaab97d8fb322605f13a935c7e6e41f7e908c9be8
parent404d84017e5ff32987ec19d70e57fd20d15beea5
re PR c++/29020 (ICE using A<N>::A instead of A<N> in friend declaration)

PR c++/29020
* friend.c (do_friend): Improve comments; add assertion.
* parser.c (cp_parser_nested_name_specifier_opt): Resolve
typenames for qualified names used in declarations, even when
caching qualified name lookup.
PR c++/29020
* g++.dg/template/friend48.C: New test.

From-SVN: r117425
gcc/cp/ChangeLog
gcc/cp/friend.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend48.C [new file with mode: 0644]