This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16190] spurious warning about non-virtual destructor
- From: "ncm-nospam at cantrip dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2004 04:32:38 -0000
- Subject: [Bug c++/16190] spurious warning about non-virtual destructor
- References: <20040625022626.16190.ncm-nospam@cantrip.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ncm-nospam at cantrip dot org 2004-06-25 04:32 -------
Enlarging on the last paragraph above...
The warning (if kept) should be issued only if a class _derived_
from "foo" is instantiated in a "new" expression. "new foo" itself
is always safe.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16190