+2018-10-24 Martin Sebor <msebor@redhat.com>
+
+ PR c++/84851
+ * call.c (maybe_warn_class_memaccess): Tighten up.
+
2018-10-17 David Malcolm <dmalcolm@redhat.com>
* Make-lang.in (selftest-c++): New.
bool special = same_type_ignoring_top_level_qualifiers_p (ctx, desttype);
tree binfo = TYPE_BINFO (ctx);
- /* FIXME: The following if statement is overly permissive (see
- bug 84851). Remove it in GCC 9. */
- if (special
- && !BINFO_VTABLE (binfo)
- && !BINFO_N_BASE_BINFOS (binfo)
- && (DECL_CONSTRUCTOR_P (current_function_decl)
- || DECL_DESTRUCTOR_P (current_function_decl)))
- return;
-
if (special
&& !BINFO_VTABLE (binfo)
&& !first_non_trivial_field (desttype))
+2018-10-24 Martin Sebor <msebor@redhat.com>
+
+ PR c++/84851
+ * g++.dg/Wclass-memaccess-4.C: Remove XFAIL.
+
2018-10-24 Martin Liska <mliska@suse.cz>
PR tree-optimization/84436
C::C (const C &c)
{
- memcpy (this, &c, sizeof c); // { dg-warning "\\\[-Wclass-memaccess]" "pr84851" { xfail *-*-*} }
+ memcpy (this, &c, sizeof c); // { dg-warning "\\\[-Wclass-memaccess]" }
}
C& C::operator= (const C &c)