This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C parser breakage due to c99 block scopes
- To: Zack Weinberg <zackw at stanford dot edu>
- Subject: Re: C parser breakage due to c99 block scopes
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Fri, 17 Nov 2000 08:29:01 +0000 (GMT)
- cc: <gcc-bugs at gcc dot gnu dot org>
On Thu, 16 Nov 2000, Zack Weinberg wrote:
> These are the only uses of if_prefix, simple_if, etc. in the file, so
> I believe the simplest fix is to change the if_prefix action so it
> uses $<filename>-2 and $<lineno>-1 instead of -1 and 0. However, I'd
> like us to think about getting rid of this insanely fragile line-
> number-remembering scheme as soon as feasible.
Also please add a testcase for this problem to the testsuite.
I suspect the parser could do with a lot of cleanup; for example, most of
the 53 expected conflicts could probably be removed with a bit of careful
rewriting (especially of how attributes get parsed).
--
Joseph S. Myers
jsm28@cam.ac.uk