This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16190] make -Wnon-virtual-dtor more sophisticated
- From: "gdr at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2004 19:21:39 -0000
- Subject: [Bug c++/16190] make -Wnon-virtual-dtor more sophisticated
- References: <20040625022626.16190.ncm-nospam@cantrip.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at acm dot org 2004-06-25 19:21 -------
Subject: Re: make -Wnon-virtual-dtor more sophisticated
You Wrote
> Besides: why -Weff-c++ at all?
If it were up to me, I remove it out of the picture.
> -Wall means "all warnings", that's why that name was chosen. Now, it is
Yes, but the current warning is more annyoing than useful and it
does not even qualify for -Wall by the most genereous measurements.
I thik the right action is to fix the warning to be
generated only if we have delete expression or a class
to destructor.
And by the way, Nathan kindly took on filling this PR
after I made a suggestion and we discussed the issue on V3
list.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16190