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

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

https://gcc.gnu.org/g:b6678d67c4b7471c25130b6c60a9087e02f31179

commit r9-8290-gb6678d67c4b7471c25130b6c60a9087e02f31179
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed Feb 26 13:03:23 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.

    gcc/cp/ChangeLog
    2020-02-26  Jason Merrill  <ja...@redhat.com>

        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