[Bug c++/92852] [8/9/10 Regression] location references block not in block tree
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 24 19:19:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92852
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:90e1d25b60630d45fe1092abeb8f4d7b6c5e2da2
commit r8-10051-g90e1d25b60630d45fe1092abeb8f4d7b6c5e2da2
Author: Jason Merrill <jason@redhat.com>
Date: Mon Feb 24 11:21:47 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-24 Jason Merrill <jason@redhat.com>
PR c++/92852
* constexpr.c (maybe_constant_value): Don't unshare if the cached
value is the same as the argument.
More information about the Gcc-bugs
mailing list