This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69323] [4.9/5/6 Regression] Segmentation fault when instantiating class template with inner class which declares itself as a friend
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 Feb 2016 19:56:35 +0000
- Subject: [Bug c++/69323] [4.9/5/6 Regression] Segmentation fault when instantiating class template with inner class which declares itself as a friend
- Auto-submitted: auto-generated
- References: <bug-69323-4 at http dot gcc dot gnu dot org/bugzilla/>
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