[Bug c++/59956] [4.8/4.9 regression] internal compiler error: unexpected expression ‘P_S’ of kind template_parm_index
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 29 20:45:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59956
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jan 29 20:44:50 2014
New Revision: 207281
URL: http://gcc.gnu.org/viewcvs?rev=207281&root=gcc&view=rev
Log:
PR c++/59956
* friend.c (do_friend): Pass the TEMPLATE_DECL to add_friend if we
have a friend template in a class template.
* pt.c (tsubst_friend_function): Look through it.
(push_template_decl_real): A friend member template is
primary.
Added:
trunk/gcc/testsuite/g++.dg/template/friend55.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/friend.c
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list