This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69323] [4.9/5/6 Regression] Segmentation fault when instantiating class template with inner class which declares itself as a friend


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

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Feb 24 19:56:03 2016
New Revision: 233681

URL: https://gcc.gnu.org/viewcvs?rev=233681&root=gcc&view=rev
Log:
        PR c++/69323 - valid

        * pt.c (instantiate_class_template_1): Set
        processing_template_decl before substituting friend_type.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]