This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31397] Useful compiler warning missing (virtual functions in derived classes used without 'virtual')
- From: "jwakely dot gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jul 2009 10:51:10 -0000
- Subject: [Bug c++/31397] Useful compiler warning missing (virtual functions in derived classes used without 'virtual')
- References: <bug-31397-14335@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from jwakely dot gcc at gmail dot com 2009-07-21 10:51 -------
There is a lot of overlap between this warning and the functionality described
by http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2852.html (which
will be updated by N2928 in a couple of weeks.)
It might make sense to add attributes rather than a -W switch, as that might
make it easier to implement the C++0x [[base_check]] and [[override]]
attributes. It would also be easier for user code to transition from GNU-style
__attribute__((override)) to C++0x-style [[override]]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31397