http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57854
--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #2) > (In reply to Thiago Macieira from comment #0) > > > > It should be in -Weffc++. > > Not unless a new C++11 edition of Effective C++ recommends using override on > all overriding functions, and not unless we update -Weffc++ to correspond to > something other than the first edition. > > This seems like something that would fit better into a plugin than the core > compiler. We could add a new option -Wbase-check, no? Or we could also write a plugin and distribute it with GCC. I think it is something that could be generally used and an useful example of how to write plugins (and a testcase testing the plugin infrastructure).