re PR c++/109 (g++ 2.95.2 can't handle dependent friend member functions)
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 7 Feb 2002 19:49:10 +0000 (19:49 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 7 Feb 2002 19:49:10 +0000 (19:49 +0000)
commitd5614afb57da11705ce88e6646bcd33ef67eb8ab
treeb7a3a796913e016fb175553b89fc5c74f709db2e
parent5d65aeb7e4432949ff6198d06b37c3ac1c58f1b7
re PR c++/109 (g++ 2.95.2 can't handle dependent friend member functions)

cp:
PR c++/109
* decl.c (grokdeclarator): Allow friend declarations from
dependant types.
* decl2.c (handle_class_head): Don't push into template parm contexts.
* pt.c (push_template_decl_real): Template parm contexts are never
being defined.
testsuite:
* g++.dg/template/friend4.C: New test.

From-SVN: r49589
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend4.C [new file with mode: 0644]