This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs allows deletion of const objects.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]