[Bug c++/84978] [8 Regression] ICE in cxx_eval_constant_expression at gcc/cp/constexpr.c:4109

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 20 18:06:00 GMT 2018


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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Mar 20 18:05:59 2018
New Revision: 258689

URL: https://gcc.gnu.org/viewcvs?rev=258689&root=gcc&view=rev
Log:
        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.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-gimplify.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/cvt.c


More information about the Gcc-bugs mailing list