PR c++/84978, ICE with NRVO.
authorJason Merrill <jason@redhat.com>
Tue, 20 Mar 2018 18:05:59 +0000 (14:05 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 20 Mar 2018 18:05:59 +0000 (14:05 -0400)
commitf5f035a336a9a47d326e800e97fe7fbbeede4a99
tree57dc575ed6e98070735858f9393dc04e43a788b4
parent91d014fffae1fcf1eb750d40e622e5b80cd1a4ec
PR c++/84978, ICE with NRVO.

* cvt.c (cp_get_fndecl_from_callee): Add fold parameter.
(cp_get_callee_fndecl_nofold): New.
* cp-gimplify.c (cp_genericize_r): Use it instead.
* call.c (check_self_delegation): Likewise.

From-SVN: r258689
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c