This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49605] -Wdelete-non-virtual-dtor is not picky enough
- From: "miles at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 1 Jul 2011 13:25:54 +0000
- Subject: [Bug c++/49605] -Wdelete-non-virtual-dtor is not picky enough
- Auto-submitted: auto-generated
- References: <bug-49605-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49605
--- Comment #3 from miles at gnu dot org 2011-07-01 13:25:23 UTC ---
Here's another test case which is closer to the real code that prompted this
bug report:
struct X
{
~X ();
virtual void meth () = 0;
};
struct Y : X
{
~Y ();
virtual void meth ();
};
void d ()
{
Y y;
}
Thanks,
-miles