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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:173c8defa6e82f1bc003173b6ee1e4eb2830d1c2

commit r10-6526-g173c8defa6e82f1bc003173b6ee1e4eb2830d1c2
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri Feb 7 16:28:20 2020 -0500

    c++: Preserve location in maybe_constant_value.

    If cxx_eval_outermost_constant_expr doesn't change the argument, we really
    shouldn't unshare it when we try to fold it again.

        PR c++/92852
        * constexpr.c (maybe_constant_value): Don't unshare if the cached
        value is the same as the argument.

Reply via email to