error: ISO C++ forbids initialization in array new

Maurizio Monge monge@sns.it
Fri May 14 23:49:00 GMT 2004


Hello,
I apologize if this is not the proper mailing list for my question.

the following code:

   int* b = new int[7](3);

Compiles on gcc-3.3.1 (unless -pedantic), but it alwais fails on gcc-3.4.
I found nothing about it on manuals, has it been intentionally removed or 
is this a bug in gcc-3.4?

Thanx
Maurizio

Since i am nost subscribed to gcc ml please CC to monge(at)sns(dot)it.



More information about the Gcc mailing list