This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29185] inconsistent warning: deleting array
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2006 16:31:00 -0000
- Subject: [Bug c++/29185] inconsistent warning: deleting array
- References: <bug-29185-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from sebor at roguewave dot com 2006-09-26 16:31 -------
The response I got from EDG is that the expression is well-formed because of
5, p8. They do agree that issuing a warning would be useful and opened an
enhancement request.
FWIW, I think it should be ill-formed with diagnostic required since the
behavior of the expression is always undefined.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29185