re PR c++/69995 ([C++14] Invalid result when evaluating constexpr function)
authorJason Merrill <jason@redhat.com>
Wed, 2 Mar 2016 02:32:38 +0000 (21:32 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 2 Mar 2016 02:32:38 +0000 (21:32 -0500)
commit7f0e23e931064d8e8758e01d95bfb89b8fa32e6e
tree0cc8022bd94df7f07d7abb5a2bc52688bc6557ba
parent4be9717cf879d45534da0044401885e508c5d562
re PR c++/69995 ([C++14] Invalid result when evaluating constexpr function)

PR c++/69995

* constexpr.c (cxx_eval_call_expression): Unshare arg.
(cxx_eval_constant_expression) [DECL_EXPR]: Unshare init.
[TARGET_EXPR]: Unshare init.

From-SVN: r233877
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-copy2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/constexpr-copy3.C [new file with mode: 0644]