c++/4241: C++ old cast parsing bug
aoliva@gcc.gnu.org
aoliva@gcc.gnu.org
Sun Sep 9 14:22:00 GMT 2001
Synopsis: C++ old cast parsing bug
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Sun Sep 9 14:22:19 2001
State-Changed-Why:
Yup, this is the parser bug documented in the known bugs web page. GCC attempts to parse (long (int (bh)) as if it were a prefix of a type-cast such as (long (*)(int bh)), but the attempt fails when it doesn't encounter the third closing parenthesis that would be needed for such a parse to be correct, and then it can't recover to try an alternative parsing. The new C++ parser being written is going to solve this problem.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4241&database=gcc
More information about the Gcc-bugs
mailing list