constexpr.c (get_fundef_copy): Use the original function for non-recursive evaluations.
authorNathan Sidwell <nathan@acm.org>
Wed, 27 Apr 2016 13:28:44 +0000 (13:28 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 27 Apr 2016 13:28:44 +0000 (13:28 +0000)
commit3c98ff9b1a24246e19da39fce967fe2f88be828e
treea55d8cdb9a0ba79683644f8c44d1fc9099e93d68
parent437244c7737eeb63973e1e285d5dc6844ab13f9f
constexpr.c (get_fundef_copy): Use the original function for non-recursive evaluations.

cp/
* constexpr.c (get_fundef_copy): Use the original function for
non-recursive evaluations.
(save_fundef_copy): Always expect a slot to be available.

testsuite/
* g++.dg/cpp0x/constexpr-recursion3.C: New.
* g++.dg/ubsan/pr63956.C: Adjust error location.

From-SVN: r235506
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-recursion3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ubsan/pr63956.C