diff options
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/c-decl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc index 0dcbae9..1ae5208 100644 --- a/gcc/c/c-decl.cc +++ b/gcc/c/c-decl.cc @@ -9846,7 +9846,7 @@ finish_struct (location_t loc, tree t, tree fieldlist, tree attributes, && TREE_CODE (vistype) == TREE_CODE (t) && !C_TYPE_BEING_DEFINED (vistype)) { - TYPE_STUB_DECL (vistype) = TYPE_STUB_DECL (t); + TYPE_STUB_DECL (t) = TYPE_STUB_DECL (vistype); if (c_type_variably_modified_p (t)) { error ("redefinition of struct or union %qT with variably " @@ -10321,7 +10321,7 @@ finish_enum (tree enumtype, tree values, tree attributes) && TREE_CODE (vistype) == TREE_CODE (enumtype) && !C_TYPE_BEING_DEFINED (vistype)) { - TYPE_STUB_DECL (vistype) = TYPE_STUB_DECL (enumtype); + TYPE_STUB_DECL (enumtype) = TYPE_STUB_DECL (vistype); if (!comptypes_same_p (enumtype, vistype)) error("conflicting redefinition of enum %qT", enumtype); } |