re PR c++/84684 (inserting random code / flags produces wrong code)
authorMarek Polacek <polacek@redhat.com>
Tue, 6 Mar 2018 21:11:46 +0000 (21:11 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 6 Mar 2018 21:11:46 +0000 (21:11 +0000)
commit1dc23505191d6ac79af9d403e7c543addd760ebd
tree340e30c9dd00d90c29656bf58a339c40b6f6f53c
parent849bbdb99c5c8b1a97041a533c69bbaf8376c975
re PR c++/84684 (inserting random code / flags produces wrong code)

PR c++/84684
* constexpr.c (cxx_bind_parameters_in_call): Unshare evaluated
arguments.

* g++.dg/cpp1z/constexpr-84684.C: New test.

From-SVN: r258303
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/constexpr-84684.C [new file with mode: 0644]