From f923c40f9baba19e58f65afa7e5572f08cee93ff Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 2 Sep 2020 17:53:24 -0400 Subject: [PATCH] c++: Use iloc_sentinel in mark_use. gcc/cp/ChangeLog: * expr.c (mark_use): Use iloc_sentinel. --- gcc/cp/expr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index a6ab96af614..aa605931f97 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -139,9 +139,7 @@ mark_use (tree expr, bool rvalue_p, bool read_p, break; } } - temp_override l (input_location); - if (loc != UNKNOWN_LOCATION) - input_location = loc; + iloc_sentinel l (loc); expr = process_outer_var_ref (expr, tf_warning_or_error, true); if (!(TREE_TYPE (oexpr) && TYPE_REF_P (TREE_TYPE (oexpr)))) -- 2.30.2