]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/10158 (ICE with templates and friends)
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 27 Mar 2003 12:19:13 +0000 (12:19 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 27 Mar 2003 12:19:13 +0000 (12:19 +0000)
commit649fc72d2638dfc1edac57bb5dc9525bdf4911e5
tree3913c3851b9b6eea4f5dc5186d9881c464352bc5
parent0bcaad20fceb2d9d394242467fa853919141f1c9
re PR c++/10158 (ICE with templates and friends)

cp:
PR c++/10158
* parser.c (cp_parser_function_definition): Set
DECL_INITIALIZED_IN_CLASS for members.
* pt.c (instantiate_decl): Only reduce the template args for
friends that are not defined in class.
testsuite:
PR c++/10158
* g++.dg/template/friend18.C: New test.

From-SVN: r64920
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend18.C [new file with mode: 0644]