kornelix
January 10th, 2006, 02:04 PM
I made the following syntax coding error:
char *buff = new char(500); // instead of [500]
The compiler accepted this. The program crashed after reading something into the above buffer. You can imagine how interesting (painful) the debugging was.
Question: is the compiler nuts or is this syntax legitimate for something I do not understand?
I am using the default g++ compiler.
char *buff = new char(500); // instead of [500]
The compiler accepted this. The program crashed after reading something into the above buffer. You can imagine how interesting (painful) the debugging was.
Question: is the compiler nuts or is this syntax legitimate for something I do not understand?
I am using the default g++ compiler.