This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
delete[] works on static arrays
- To: egcs-bugs at cygnus dot com
- Subject: delete[] works on static arrays
- From: Guillaume Laurent <glaurent at worldnet dot fr>
- Date: 07 Jun 1998 11:08:52 +0200
The following compiles cleanly with egcs 1.0.3, while it shouldn't :
int main(void)
{
char a[120];
delete[] a;
return 0;
}
Replacing 'delete[]' by 'delete' yields an expected error message, though.
--
Guillaume.
http://www.worldnet.fr/~glaurent