From 455adfe309d594cda209c72b5ab8615a69265c33 Mon Sep 17 00:00:00 2001 From: kenner Date: Sat, 16 Sep 2000 18:31:00 +0000 Subject: * stor-layout.c (place_field): Don't do anything if field or its type are ERROR_MARK. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36460 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/stor-layout.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/stor-layout.c') diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index af219ccbe91..1de070d521a 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -638,6 +638,9 @@ place_field (rli, field) /* The type of this field. */ tree type = TREE_TYPE (field); + if (TREE_CODE (field) == ERROR_MARK || TREE_CODE (type) == ERROR_MARK) + return; + /* If FIELD is static, then treat it like a separate variable, not really like a structure field. If it is a FUNCTION_DECL, it's a method. In both cases, all we do is lay out the decl, and we do -- cgit v1.2.1