Message ID | 5759FBC7.5080503@oracle.com |
---|---|
State | New |
Headers | show |
Index: decl.c =================================================================== --- decl.c (revision 237280) +++ decl.c (working copy) @@ -6002,6 +6002,12 @@ check_initializer (tree decl, tree init, int flags tree init_code = NULL; tree core_type; + if (TREE_TYPE (init) == error_mark_node) + { + TREE_TYPE (decl) = error_mark_node; + return NULL_TREE; + } + /* Things that are going to be initialized need to have complete type. */ TREE_TYPE (decl) = type = complete_type (TREE_TYPE (decl));