* class.c (check_field_decls): Fix typo.
authorMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 24 Oct 2002 23:43:48 +0000 (23:43 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 24 Oct 2002 23:43:48 +0000 (23:43 +0000)
From-SVN: r58517

gcc/cp/class.c

index 1439833b209d12f032a5f79ac21789db20a9e23a..20be4ebd75930fd104fe3dfbe6a22f2dc1625399 100644 (file)
@@ -3181,7 +3181,7 @@ check_field_decls (tree t, tree *access_decls,
              element_type = strip_array_types (type);
              if (CLASS_TYPE_P (element_type) 
                  && CLASSTYPE_CONTAINS_EMPTY_CLASS_P (element_type))
-               CLASSTYPE_CONTAINS_EMPTY_CLASS_P (element_type) = 1;
+               CLASSTYPE_CONTAINS_EMPTY_CLASS_P (t) = 1;
            }
        }