This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/4241: C++ old cast parsing bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]