This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13086] [3.3/3.4/3.5 regression] the location of the warning message is wrong when calling delete on incomplete type
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Feb 2004 18:42:20 -0000
- Subject: [Bug c++/13086] [3.3/3.4/3.5 regression] the location of the warning message is wrong when calling delete on incomplete type
- References: <20031117165847.13086.akim@epita.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-02-04 18:42 -------
Reword this:
note: the generated code will not work, unless the class does
not have a destructor nor a delete operator.
as:
note: neither the destructor nor the class-specific operator delete will be
called, even if they are declared when the class is defined.
I believe that takes into account Gaby's and Jason's comments.
Then, please check in the patch.
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13086