This is the mail archive of the gcc-patches@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: delete[] works on static arrays


>>>>> Ğ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


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