This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: delete[] works on static arrays
- To: Guillaume Laurent <glaurent at worldnet dot fr>
- Subject: Re: delete[] works on static arrays
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 07 Jun 1998 17:24:32 -0300
- Cc: egcs-bugs at cygnus dot com, egcs-patches at cygnus dot com
- References: <m3zpfpwpcr.fsf@linux2.worldnet.fr>
Guillaume Laurent <glaurent@worldnet.fr> writes:
> 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.
Thanks for your report. The attached patch should fix this problem.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
delete.diff