https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93143

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jan 10 18:47:02 2020
New Revision: 280127

URL: https://gcc.gnu.org/viewcvs?rev=280127&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-array22.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c

Reply via email to