This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 971127 array initialization problem!?!
- To: "Lassi A. Tuura" <Lassi dot Tuura at cern dot ch>
- Subject: Re: 971127 array initialization problem!?!
- From: Robert Wilhelm <robert at physiol dot med dot tu-muenchen dot de>
- Date: Mon, 1 Dec 1997 11:28:46 +0100
- Cc: neal at ctd dot comsat dot com, egcs at cygnus dot com, g++ at cygnus dot com
- References: <E0xcB9E-00003z-00@neal.fred.net> <34826CB3.3E868177@cern.ch>
On Mon, Dec 01, 1997 at 08:52:19AM +0100, Lassi A. Tuura wrote:
> 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...
>
Would the g++ maintainers accept patches to restore the old behavior?
I have quite a lot of code which depends on
this unofficial behavior :-(