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]

Re: ISO C++ forbids initialization in array new?


WU Yongwei wrote:

> Well, I see this in the gcc error message.  Can someone here kindly
> point to me which part of the Standard specified this behaviour?  I
> thought it should be in 5.3.4, but was not able to find the words
> there.
> 
> By the way, anyone knows the rationale of this behaviour?

It is not explicitly forbidden. Rather, there is no syntax defined that
would enable it (so it is implicitly forbidden)

you might be interested in the following paper from the last ISO
mailing ;¬)

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1824.htm


AlisdairM


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