Commit 5522c047 by Per Bothner

(digest_init): Compare types using comptypes.

From-SVN: r5321
parent 7f2ab886
...@@ -4943,8 +4943,8 @@ digest_init (type, init, require_constant, constructor_constant) ...@@ -4943,8 +4943,8 @@ digest_init (type, init, require_constant, constructor_constant)
from an expression of the same type, optionally with braces. */ from an expression of the same type, optionally with braces. */
if (inside_init && TREE_TYPE (inside_init) != 0 if (inside_init && TREE_TYPE (inside_init) != 0
&& ((TYPE_MAIN_VARIANT (TREE_TYPE (inside_init)) && (comptypes (TYPE_MAIN_VARIANT (TREE_TYPE (inside_init)),
== TYPE_MAIN_VARIANT (type)) TYPE_MAIN_VARIANT (type))
|| (code == ARRAY_TYPE || (code == ARRAY_TYPE
&& comptypes (TREE_TYPE (inside_init), type)) && comptypes (TREE_TYPE (inside_init), type))
|| (code == POINTER_TYPE || (code == POINTER_TYPE
......
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