diff options
Diffstat (limited to 'gcc/cp/constexpr.c')
| -rw-r--r-- | gcc/cp/constexpr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c index 2100f94cdd0..f5be8dfb46c 100644 --- a/gcc/cp/constexpr.c +++ b/gcc/cp/constexpr.c @@ -2933,6 +2933,9 @@ cxx_eval_pointer_plus_expression (const constexpr_ctx *ctx, tree t, tree op01 = TREE_OPERAND (t, 1); location_t loc = EXPR_LOCATION (t); + op00 = cxx_eval_constant_expression (ctx, op00, lval, + non_constant_p, overflow_p); + STRIP_NOPS (op00); if (TREE_CODE (op00) != ADDR_EXPR) return NULL_TREE; |
