diff options
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index dee3839974a..e0044902357 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -864,6 +864,11 @@ dbxout_type_fields (tree type) field that we can support. */ for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem)) { + + /* If on of the nodes is an error_mark or its type is then return early. */ + if (tem == error_mark_node || TREE_TYPE (tem) == error_mark_node) + return; + /* Omit here local type decls until we know how to support them. */ if (TREE_CODE (tem) == TYPE_DECL /* Omit fields whose position or size are variable or too large to |