egcs allows deletion of const objects.

Mike Stump mrs@wrs.com
Tue Oct 6 14:57:00 GMT 1998


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.



More information about the Gcc-bugs mailing list