Commit 1e40eab8 by Richard Stallman

(output_init_element): Fix backward test in last change.

Use TYPE_MAIN_VARIANT.

From-SVN: r5093
parent 188a8190
...@@ -5736,7 +5736,8 @@ output_init_element (value, type, field, pending) ...@@ -5736,7 +5736,8 @@ output_init_element (value, type, field, pending)
if (TREE_CODE (TREE_TYPE (value)) == FUNCTION_TYPE if (TREE_CODE (TREE_TYPE (value)) == FUNCTION_TYPE
|| (TREE_CODE (TREE_TYPE (value)) == ARRAY_TYPE || (TREE_CODE (TREE_TYPE (value)) == ARRAY_TYPE
&& comptypes (TREE_TYPE (value), type))) && !comptypes (TYPE_MAIN_VARIANT (TREE_TYPE (value)),
TYPE_MAIN_VARIANT (type))))
value = default_conversion (value); value = default_conversion (value);
if (value == error_mark_node) if (value == error_mark_node)
......
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