c++: Fix misuse of "override" in -Weffc++ warnings (PR 94698)
authorJonathan Wakely <jwakely@redhat.com>
Wed, 22 Apr 2020 17:02:38 +0000 (18:02 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 22 Apr 2020 17:02:38 +0000 (18:02 +0100)
commitc95d1dd7f5ec48e4c6d622b57843aaa25528170b
treea41909087b62b68696ff84e630245fa1ceabe244
parent808a6eadda1a353ce3a70556feac128580491b24
c++: Fix misuse of "override" in -Weffc++ warnings (PR 94698)

These warnings have nothing to do with virtual functions, so "override"
is inappropriate. The warnings are just talking about defining special
members, so let's say that.

PR translation/94698
* class.c (check_field_decls): Change "override" to "define" in
-Weffc++ diagnostics.
gcc/cp/ChangeLog
gcc/cp/class.c