constexpr.c (cxx_eval_builtin_function_call): Use cp_fully_fold to fold arguments...
authorJason Merrill <jason@redhat.com>
Tue, 17 Nov 2015 03:58:18 +0000 (22:58 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 17 Nov 2015 03:58:18 +0000 (22:58 -0500)
commitb925d25d7eeccf5a259f5c744b2de8d8285e0bc3
tree0ee769b873e0e06ca40129282ee59e8a1bdec0ec
parent10db83d85ab3544c41bc49c0d3f81f68f48fdf23
constexpr.c (cxx_eval_builtin_function_call): Use cp_fully_fold to fold arguments to __builtin_constant_p.

* constexpr.c (cxx_eval_builtin_function_call): Use cp_fully_fold
to fold arguments to __builtin_constant_p.

From-SVN: r230453
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-gimplify.c
gcc/testsuite/g++.dg/delayedfold/builtin-constant1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/delayedfold/builtin-constant2.C [new file with mode: 0644]