+2020-04-22 Jonathan Wakely <jwakely@redhat.com>
+
+ PR translation/94698
+ * class.c (check_field_decls): Change "override" to "define" in
+ -Weffc++ diagnostics.
+
2020-04-22 Iain Sandoe <iain@sandoe.co.uk>
PR c++/94682
if (! TYPE_HAS_COPY_CTOR (t))
{
warning (OPT_Weffc__,
- " but does not override %<%T(const %T&)%>", t, t);
+ " but does not define %<%T(const %T&)%>", t, t);
if (!TYPE_HAS_COPY_ASSIGN (t))
warning (OPT_Weffc__, " or %<operator=(const %T&)%>", t);
}
else if (! TYPE_HAS_COPY_ASSIGN (t))
warning (OPT_Weffc__,
- " but does not override %<operator=(const %T&)%>", t);
+ " but does not define %<operator=(const %T&)%>", t);
inform (DECL_SOURCE_LOCATION (pointer_member),
"pointer member %q+D declared here", pointer_member);
}