OSDN Git Service

* cp-tree.h (struct lang_type): Added non_zero_init.
[pf3gnuchains/gcc-fork.git] / gcc / cp / class.c
index 98f32dc..64b528a 100644 (file)
@@ -3405,6 +3405,9 @@ check_field_decls (t, access_decls, empty_p,
            to be allowed in POD structs.  */
        CLASSTYPE_NON_POD_P (t) = 1;
 
+      if (! zero_init_p (type))
+       CLASSTYPE_NON_ZERO_INIT_P (t) = 1;
+
       /* If any field is const, the structure type is pseudo-const.  */
       if (CP_TYPE_CONST_P (type))
        {