(process_init_element): Check for constructor_type

set before dereferencing it in the string cst code.

From-SVN: r6656
This commit is contained in:
Jim Wilson 1994-02-27 14:41:53 -08:00
parent f95d3af09e
commit d27c148b76

View File

@ -5872,6 +5872,7 @@ process_init_element (value)
/* Handle superfluous braces around string cst as in
char x[] = {"foo"}; */
if (string_flag
&& constructor_type
&& TREE_CODE (constructor_type) == ARRAY_TYPE
&& TREE_CODE (TREE_TYPE (constructor_type)) == INTEGER_TYPE
&& integer_zerop (constructor_unfilled_index))