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: "ville.voutilainen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 9 Jul 2011 12:54:58 +0000
- Subject: [Bug c++/31397] Useful compiler warning missing (virtual functions in derived classes used without 'virtual')
- Auto-submitted: auto-generated
- References: <bug-31397-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31397
Ville Voutilainen <ville.voutilainen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ville.voutilainen at gmail
| |dot com
--- Comment #14 from Ville Voutilainen <ville.voutilainen at gmail dot com> 2011-07-09 12:54:40 UTC ---
"[[base_check]]" or "explicit" on a class might've been helpful for this, but
even those facilities were never supposed to require annotations on
destructors.
The committee ended up removing that part because there were grammar problems
for "new" on members, and we didn't want to add base_check/explicit that
would check only overrides.