PR c++/64333
commitc8f6aeb1b16a67f6cc9178375690b6c1e0153863
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2014 20:41:18 +0000 (17 20:41 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Dec 2014 20:41:18 +0000 (17 20:41 +0000)
treedfc5f8c7bb2b4b522da4a02ec8e17658f3a656ab
parent1227ba74c1c618d784cd1e81a6ecfd843febedb6
PR c++/64333
* constexpr.c (cxx_bind_parameters_in_call): non_constant_args parm.
(cxx_eval_call_expression): Don't cache calls with non-constant args.
(cxx_eval_constant_expression) [COMPOUND_EXPR]: Pass true for lval.
(cxx_eval_unary_expression, cxx_eval_binary_expression)
(cxx_eval_conditional_expression): Pass false for lval.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218832 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-initlist1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/constexpr-loop2.C [new file with mode: 0644]