This is the mail archive of the gcc-bugs@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 parser breakage due to c99 block scopes


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


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