This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ extension not supported in 3.4.0 20040121 (prerelease)
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Shelly Adhikari" <shelly at interrasystems dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Sat, 24 Jan 2004 02:39:04 +0100
- Subject: Re: C++ extension not supported in 3.4.0 20040121 (prerelease)
- References: <4011B244.1080706@InterraSystems.com>
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