c++/3100: fails to compile syntactically correct code
aoliva@gcc.gnu.org
aoliva@gcc.gnu.org
Sat Jun 9 14:53:00 GMT 2001
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
More information about the Gcc-bugs
mailing list