[Bug c++/71738] [4.9/5/6/7 Regression] ICE on valid C++ code: tree check: expected record_type or union_type or qual_union_type, have template_decl in lookup_template_class_1, at cp/pt.c:8619

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jul 24 02:40:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71738

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sun Jul 24 02:39:41 2016
New Revision: 238685

URL: https://gcc.gnu.org/viewcvs?rev=238685&root=gcc&view=rev
Log:
        PR c++/71738 - nested template friend

        * pt.c (lookup_template_class_1): Handle getting template from tsubst.

Added:
    trunk/gcc/testsuite/g++.dg/template/friend63.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c


More information about the Gcc-bugs mailing list