* class.c (layout_class_type): Don't give -Wabi warning for a bug
in a previous ABI version.
From-SVN: r157051
+2010-02-24 Jason Merrill <jason@redhat.com>
+
+ * class.c (layout_class_type): Don't give -Wabi warning for a bug
+ in a previous ABI version.
+
2010-02-23 Jason Merrill <jason@redhat.com>
PR c++/43143
/* G++ used to use DECL_FIELD_OFFSET as if it were the byte
offset of the field. */
if (warn_abi
+ && !abi_version_at_least (2)
&& !tree_int_cst_equal (DECL_FIELD_OFFSET (field),
byte_position (field))
&& contains_empty_class_p (TREE_TYPE (field)))
-// { dg-options "-Wabi" }
+// { dg-options "-Wabi -fabi-version=1" }
struct A {};