This is the mail archive of the
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
> char** abc = new (char*) ; // not accepted by 3.4.0 prerelease but
> accepted by 3.3.2
> The following works ...
> char** abc = new char* ; // 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
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.