This is the mail archive of the gcc@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]
Other format: [Raw text]

error: ISO C++ forbids initialization in array new


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.


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