Commit d27c148b by Jim Wilson

(process_init_element): Check for constructor_type

set before dereferencing it in the string cst code.

From-SVN: r6656
parent f95d3af0
...@@ -5872,6 +5872,7 @@ process_init_element (value) ...@@ -5872,6 +5872,7 @@ process_init_element (value)
/* Handle superfluous braces around string cst as in /* Handle superfluous braces around string cst as in
char x[] = {"foo"}; */ char x[] = {"foo"}; */
if (string_flag if (string_flag
&& constructor_type
&& TREE_CODE (constructor_type) == ARRAY_TYPE && TREE_CODE (constructor_type) == ARRAY_TYPE
&& TREE_CODE (TREE_TYPE (constructor_type)) == INTEGER_TYPE && TREE_CODE (TREE_TYPE (constructor_type)) == INTEGER_TYPE
&& integer_zerop (constructor_unfilled_index)) && integer_zerop (constructor_unfilled_index))
......
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