This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs allows deletion of const objects.
- To: egcs-bugs at cygnus dot com, s3824888 at techst02 dot technion dot ac dot il
- Subject: Re: egcs allows deletion of const objects.
- From: mrs at wrs dot com (Mike Stump)
- Date: Tue, 6 Oct 1998 14:57:07 -0700
This is valid, buy a new book. :-)
> Date: Mon, 5 Oct 1998 23:09:02 +0200 (IST)
> From: Louidor Erez <s3824888@techst02.technion.ac.il>
> int main() {
> const char* string = new char();
> delete string; // This shouldn't be allowed.