OSDN Git Service

* decl2.c (grokfield): Bail out if type is error_mark_node.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Mar 2000 10:13:28 +0000 (10:13 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Mar 2000 10:13:28 +0000 (10:13 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32582 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl2.c

index f5b91d0..02d7de8 100644 (file)
@@ -1,3 +1,7 @@
+2000-03-16  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * decl2.c (grokfield): Bail out if type is error_mark_node.
+
 2000-03-15  Nathan Sidwell  <nathan@codesourcery.com>
 
        * tinfo2.cc (__ptr_to_member_data): Rename to ...
index f7ed581..266e660 100644 (file)
@@ -1593,6 +1593,8 @@ grokfield (declarator, declspecs, init, asmspec_tree, attrlist)
   if (! value || value == error_mark_node)
     /* friend or constructor went bad.  */
     return value;
+  if (TREE_TYPE (value) == error_mark_node)
+    return error_mark_node;  
 
   /* Pass friendly classes back.  */
   if (TREE_CODE (value) == VOID_TYPE)