PR c++/93143 - incorrect tree sharing with constexpr.
authorJason Merrill <jason@redhat.com>
Fri, 10 Jan 2020 18:47:02 +0000 (13:47 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 10 Jan 2020 18:47:02 +0000 (13:47 -0500)
commite0804c9b5efdf17bbfb692a787df36b86f71af8d
tree85f98decaabbf13fa0629a17b3dd0716131067bb
parent640b23d7ff5f3fad005dcbfb04a36e27000fc150
PR c++/93143 - incorrect tree sharing with constexpr.

We don't unshare CONSTRUCTORs as often during constexpr evaluation, so we
need to unshare them here.

* constexpr.c (cxx_eval_outermost_constant_expr): Don't assume
CONSTRUCTORs are already unshared.

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