From mboxrd@z Thu Jan 1 00:00:00 1970 From: aoliva@gcc.gnu.org To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hzoli@austin.ibm.com, nobody@gcc.gnu.org Subject: Re: c++/4241: C++ old cast parsing bug Date: Sun, 09 Sep 2001 14:22:00 -0000 Message-id: <20010909212219.30598.qmail@sourceware.cygnus.com> X-SW-Source: 2001-09/msg00198.html List-Id: 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