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

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Mar  2 02:44:46 2016
New Revision: 233879

URL: https://gcc.gnu.org/viewcvs?rev=233879&root=gcc&view=rev
Log:
        PR c++/69995

        * constexpr.c (cxx_eval_call_expression): Unshare arg.
        (cxx_eval_constant_expression) [DECL_EXPR]: Unshare init.
        [TARGET_EXPR]: Unshare init.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-copy2.C
    branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-copy3.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/constexpr.c

Reply via email to