[Bug c++/93143] [10 Regression] Multiple calls to static constexpr member function gives wrong code

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 7 13:30:00 GMT 2020


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org
             Blocks|                            |55004

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Bisection points to r272126:

Reduce unsharing in constexpr call evaluation.

        * constexpr.c (unshare_constructor): Only unshare if T is itself a
        CONSTRUCTOR.
        (cxx_eval_call_expression): Don't call it on the result here.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004
[Bug 55004] [meta-bug] constexpr issues


More information about the Gcc-bugs mailing list