diff options
Diffstat (limited to 'gcc/cp/cp-array-notation.c')
-rw-r--r-- | gcc/cp/cp-array-notation.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/cp-array-notation.c b/gcc/cp/cp-array-notation.c index 65b8bcb..0ff0967 100644 --- a/gcc/cp/cp-array-notation.c +++ b/gcc/cp/cp-array-notation.c @@ -181,7 +181,7 @@ replace_invariant_exprs (tree *node) if (VOID_TYPE_P (TREE_TYPE (t))) { finish_expr_stmt (t); - new_var = void_zero_node; + new_var = void_node; } else new_var = get_temp_regvar (TREE_TYPE (t), t); @@ -1126,6 +1126,7 @@ expand_array_notation_exprs (tree t) { case ERROR_MARK: case IDENTIFIER_NODE: + case VOID_CST: case INTEGER_CST: case REAL_CST: case FIXED_CST: |