I talked in the PR about possibly stripping the location from the args in
the hash table, since if we use the cache the locations would be wrong, but
didn't actually do anything about that. Then I noticed that there's already
unshare_expr_without_location...
* constexpr.c (cxx_eval_call_expression): Use
unshare_expr_without_location.
From-SVN: r279557
+2019-12-18 Jason Merrill <jason@redhat.com>
+
+ PR c++/91165 follow-on tweak
+ * constexpr.c (cxx_eval_call_expression): Use
+ unshare_expr_without_location.
+
2019-12-19 Julian Brown <julian@codesourcery.com>
Maciej W. Rozycki <macro@codesourcery.com>
Tobias Burnus <tobias@codesourcery.com>
/* Unshare args going into the hash table to separate them
from the caller's context, for better GC and to avoid
problems with verify_gimple. */
- arg = unshare_expr (arg);
+ arg = unshare_expr_without_location (arg);
TREE_VEC_ELT (bound, i) = arg;
}
/* Don't share a CONSTRUCTOR that might be changed. This is not