[PR c++/84694] ICE on template friend decl
authorNathan Sidwell <nathan@acm.org>
Mon, 5 Mar 2018 16:12:07 +0000 (16:12 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 5 Mar 2018 16:12:07 +0000 (16:12 +0000)
commita5dccd4614b84381f6799ae0162cd0859de0fc86
tree03af6f3f0445e065205df84e609d661b9592fa55
parent8c6b5eb80f51aa685b1d86305399d4dc22300ec2
[PR c++/84694] ICE on template friend decl

https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00221.html
PR c++/84694
* friend.c (do_friend): Restore check for identifier_p inside
TEMPLATE_ID_EXPR.

PR c++/84694
* g++.dg/template/pr84694.C: New.

From-SVN: r258254
gcc/cp/ChangeLog
gcc/cp/friend.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr84694.C [new file with mode: 0644]