This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4241: C++ old cast parsing bug
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, hzoli at austin dot ibm dot com, nobody at gcc dot gnu dot org
- Subject: Re: c++/4241: C++ old cast parsing bug
- From: aoliva at gcc dot gnu dot org
- Date: 9 Sep 2001 21:22:19 -0000
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