re PR c++/18825 (ICE segmentation fault in wv2)
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Wed, 15 Dec 2004 15:21:11 +0000 (15:21 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Wed, 15 Dec 2004 15:21:11 +0000 (15:21 +0000)
commit6e432b319e1f52ea03345c691334c9ac80fcef85
treefc3c8123f4c13382b40067d4d1ac457e3358cc0c
parent06d5588c56e70b6f89f3cdab25c381b237759bd7
re PR c++/18825 (ICE segmentation fault in wv2)

PR c++/18825
* pt.c (instantiate_class_template): Set input_location for
friend function.
(tsubst_friend_function): Don't set input_location here.
Make sure the context is complete if necessary.

* g++.dg/template/friend32.C: New test.

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