diff options
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 7881a9faf1b..192cfa64197 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2223,7 +2223,7 @@ check_template_template_default_arg (tree argument) tree begin_class_definition (tree t, tree attributes) { - if (t == error_mark_node) + if (error_operand_p (t) || error_operand_p (TYPE_MAIN_DECL (t))) return error_mark_node; if (processing_template_parmlist) |