OSDN Git Service

PR c++/38392
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Apr 2010 15:54:42 +0000 (15:54 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:17:31 +0000 (14:17 +0900)
* pt.c (tsubst_friend_function): Instatiate a friend that has already
been used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158073 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/testsuite/ChangeLog

index 91d8106..36ac899 100644 (file)
@@ -1,5 +1,9 @@
 2010-04-07  Jason Merrill  <jason@redhat.com>
 
 2010-04-07  Jason Merrill  <jason@redhat.com>
 
+       PR c++/38392
+       * pt.c (tsubst_friend_function): Instatiate a friend that has already
+       been used.
+
        * pt.c (print_template_statistics): New.
        * cp-tree.h: Declare it.
        * tree.c (cxx_print_statistics): Call it.
        * pt.c (print_template_statistics): New.
        * cp-tree.h: Declare it.
        * tree.c (cxx_print_statistics): Call it.
index 3627084..1b88654 100644 (file)
@@ -1,5 +1,8 @@
 2010-04-07  Jason Merrill  <jason@redhat.com>
 
 2010-04-07  Jason Merrill  <jason@redhat.com>
 
+       PR c++/38392
+       * g++.dg/template/friend51.C: New test.
+
        PR c++/41970
        * g++.old-deja/g++.other/linkage1.C: Adjust.
 
        PR c++/41970
        * g++.old-deja/g++.other/linkage1.C: Adjust.