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
This commit is contained in:
parent
2692eb7d0e
commit
398ce3dd7c
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue