aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 009cb0e..371f00f 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -1846,6 +1846,8 @@ get_type_decl (t)
return t;
if (TYPE_P (t))
return TYPE_STUB_DECL (t);
+ if (t == error_mark_node)
+ return t;
my_friendly_abort (42);