Constructor for new T[..]

Alexandre Oliva aoliva@redhat.com
Wed May 7 00:13:00 GMT 2003


On May  6, 2003, Andrei Zmievski <andrei@gravitonic.com> wrote:

> I found out that it's possible to invoke a non-default constructor when
> using 'new' operator to create an array of objects.

Err...  Which version of GCC.  This used to be accepted in very old
versions of GCC, but IIRC it was taken out a long time ago.  It's
definitely not Standard C++.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Gcc mailing list