This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3100: fails to compile syntactically correct code
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, ofv at wanadoo dot es
- Subject: Re: c++/3100: fails to compile syntactically correct code
- From: aoliva at gcc dot gnu dot org
- Date: 9 Jun 2001 21:53:34 -0000
Synopsis: fails to compile syntactically correct code
State-Changed-From-To: open->analyzed
State-Changed-By: aoliva
State-Changed-When: Sat Jun 9 14:53:33 2001
State-Changed-Why:
No matter how much it might seem that GCC is right, it parses the new-expression incorrectly. It is parsing it as:
new ((MyClass*)[10])
but the correct parse would have been:
(new (MyClass*))[10]
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3100&database=gcc