c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>): Use TYPE_FIELDS instead...
authorAndrew Pinski <apinski@apple.com>
Thu, 17 Jun 2004 22:53:13 +0000 (22:53 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 17 Jun 2004 22:53:13 +0000 (15:53 -0700)
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

gcc/ChangeLog
gcc/c-typeck.c

index aadf8534b3631b4f8b622380309ff1452eaa31e4..01099dc2b25ea13cf7c95b5a40d0a993b9c650c4 100644 (file)
@@ -1,3 +1,8 @@
+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
index 434cd575ce0930b27afe43f18bc0e8b311c536f3..b2718b6b79a58a3feef9544f4595592c8dde3bca 100644 (file)
@@ -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;