This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 971127 array initialization problem!?!
- To: neal at ctd dot comsat dot com
- Subject: Re: 971127 array initialization problem!?!
- From: "Lassi A. Tuura" <Lassi dot Tuura at cern dot ch>
- Date: Mon, 01 Dec 1997 08:52:19 +0100
- CC: egcs at cygnus dot com
- Organization: CERN, European Laboratory for Particle Physics
- References: <E0xcB9E-00003z-00@neal.fred.net>
neal@ctd.comsat.com wrote:
> QBitmap* y = new QBitmap[5](2,2);
This is not valid C++ syntax -- initialisers are not allowed in
array-new expression. Code like this used to compile with g++, but I
don't know if it ever was officially supported GNU extension. If the
feature has been removed, the diagnostic could be improved...
Cheers,
//lat
--
Lassi.Tuura@cern.ch There's no sunrise without a night