Commit 398ce3dd by Andrew Pinski Committed by Andrew Pinski

c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>): Use TYPE_FIELDS…

c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>): Use TYPE_FIELDS instead of TYPE_VALUES.

2004-06-17  Andrew Pinski <apinski@apple.com>

        * c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>):
        Use TYPE_FIELDS instead of TYPE_VALUES.

From-SVN: r83321
parent 2692eb7d
2004-06-17 Andrew Pinski <apinski@apple.com>
* c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>):
Use TYPE_FIELDS instead of TYPE_VALUES.
2004-06-17 Jason Merrill <jason@redhat.com>
PR c++/16015
......
......@@ -864,7 +864,7 @@ tagged_types_tu_compatible_p (tree t1, tree t2)
tagged_tu_seen_base = &tts;
if (DECL_NAME (s1) != NULL)
for (s2 = TYPE_VALUES (t2); s2; s2 = TREE_CHAIN (s2))
for (s2 = TYPE_FIELDS (t2); s2; s2 = TREE_CHAIN (s2))
if (DECL_NAME (s1) == DECL_NAME (s2))
{
int result;
......
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