diff options
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index cfd06bb..c6f921a 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2105,6 +2105,9 @@ finish_unary_op_expr (enum tree_code code, tree expr) tree finish_compound_literal (tree type, tree compound_literal) { + if (type == error_mark_node) + return error_mark_node; + if (!TYPE_OBJ_P (type)) { error ("compound literal of non-object type %qT", type); |