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

--- Comment #13 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Thu Apr  7 16:12:05 2016
New Revision: 234810

URL: https://gcc.gnu.org/viewcvs?rev=234810&root=gcc&view=rev
Log:
Avoid needless unsharing during constexpr evaluation (PR c++/70452)

gcc/cp/ChangeLog:

        PR c++/70452
        * constexpr.c (find_constructor): New function.
        (unshare_constructor): New function.
        (cxx_eval_call_expression): Use unshare_constructor instead of
        unshare_expr.
        (find_array_ctor_elt): Likewise.
        (cxx_eval_vec_init_1): Likewise.
        (cxx_eval_store_expression): Likewise.
        (cxx_eval_constant_expression): Likewise.


Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c

Reply via email to