diff options
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r-- | gcc/cp/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index 75e99e5..8bd341b 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -133,8 +133,8 @@ mark_exp_read (tree exp) switch (TREE_CODE (exp)) { case VAR_DECL: - if (DECL_VALUE_EXPR (exp)) - mark_exp_read (DECL_VALUE_EXPR (exp)); + if (DECL_DECOMPOSITION_P (exp)) + mark_exp_read (DECL_DECOMP_BASE (exp)); gcc_fallthrough (); case PARM_DECL: DECL_READ_P (exp) = 1; |