https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71738
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Sun Jul 24 03:04:31 2016 New Revision: 238691 URL: https://gcc.gnu.org/viewcvs?rev=238691&root=gcc&view=rev Log: PR c++/71738 - nested template friend * pt.c (lookup_template_class_1): Handle getting template from tsubst. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/template/friend63.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/pt.c