Commit de9a3171 by J. David Anglin Committed by Gavin Romig-Koch

c-typeck.c (digest_init): Return error_mark_node node when TREE_TYPE (init) == error_mark_node.

2000-06-26  J. David Anglin  <dave@hiauly1.hia.nrc.ca>

	* c-typeck.c (digest_init): Return error_mark_node node when
	TREE_TYPE (init)  == error_mark_node.

From-SVN: r34711
parent ed18e47e
2000-06-26 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* c-typeck.c (digest_init): Return error_mark_node node when
TREE_TYPE (init) == error_mark_node.
2000-06-26 Philipp Thomas <pthomas@suse.de> 2000-06-26 Philipp Thomas <pthomas@suse.de>
* aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no, * aclocal.m4 (AM_WITH_NLS): Don't set MSGFMT or GMSGFMT to no,
......
...@@ -4610,7 +4610,9 @@ digest_init (type, init, require_constant, constructor_constant) ...@@ -4610,7 +4610,9 @@ digest_init (type, init, require_constant, constructor_constant)
enum tree_code code = TREE_CODE (type); enum tree_code code = TREE_CODE (type);
tree inside_init = init; tree inside_init = init;
if (type == error_mark_node || init == error_mark_node) if (type == error_mark_node
|| init == error_mark_node
|| TREE_TYPE (init) == error_mark_node)
return error_mark_node; return error_mark_node;
/* Strip NON_LVALUE_EXPRs since we aren't using as an lvalue. */ /* Strip NON_LVALUE_EXPRs since we aren't using as an lvalue. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment