(process_init_element): Check for constructor_type
set before dereferencing it in the string cst code. From-SVN: r6656
This commit is contained in:
parent
f95d3af09e
commit
d27c148b76
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user