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: C++ extension not supported in 3.4.0 20040121 (prerelease)


Shelly Adhikari wrote:


> This following extension works in gcc 3.3.2 but not in 3.4.0 20040121
> (prerelease).
> char** abc = new (char*) [64]; // not accepted by 3.4.0 prerelease but
> accepted by 3.3.2
>
> The following works ...
> char** abc = new char* [64]; // accepted by both.

Yes, this is mandated by the C++ standard. Basically, the syntax with [] does
not allow parenthesis around the type.

> If it is intentional, shouldn't this be reported in
> http://gcc.gnu.org/gcc-3.4/changes.html.

I guess that if someone wants to sit down and write an entry for it, it could
be easily committed. I don't feel a strong urge, though.

Giovanni Bajo



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