aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 81000bf..a2d41f1 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -10247,6 +10247,9 @@ cp_parser_elaborated_type_specifier (cp_parser* parser,
}
}
+ if (type == error_mark_node)
+ return error_mark_node;
+
/* Allow attributes on forward declarations of classes. */
if (attributes)
{