delete[] works on static arrays

Gabriel Dos Reis Gabriel.Dos-Reis@dptmaths.ens-cachan.fr
Mon Jun 8 02:45:00 GMT 1998


>>>>> «Alexandre», Alexandre Oliva <oliva@dcc.unicamp.br> wrote:

Alexandre> Jason Merrill <jason@cygnus.com> writes:
>> I'm not sure about that.  The draft says

>> The operand shall have a pointer type, or a class type having
>> a single conversion function (_class.conv.fct_)  to  a  pointer  type.

>> but it also says, about array references, that

>> One of the expressions shall have the type "pointer to T"

>> so I think that the pointer can be the result of the default
>> array-to-pointer conversion.

Alexandre> Perhaps we should ask in comp.std.c++?  Or is there anyone from the
Alexandre> committee reading this? :-)


	In fact, we (James Kanze included) have discussed this issue on
the french newgroup. It came up that a standard conforming
implementation should reject such construction. 

-- Gaby



More information about the Gcc-patches mailing list