[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]Arrays and torture testing ilasm (a bug)
From: |
Patric Hedlin |
Subject: |
Re: [DotGNU]Arrays and torture testing ilasm (a bug) |
Date: |
Sun, 9 Mar 2003 19:43:56 +0100 |
----- Original Message -----
> Hi,
> As usual I've dug up a bug for ilasm which prevents it from
> assembling any array larger than 4994 elements. I almost know
> why it happens.
>
> ilasm_grammar.y: 2627
>
> DataItemList
> : DataItem
> | DataItem ',' DataItemList
> ;
>
> This sets up a recursion of 4994 levels in itself and finally till
> the parser gives up. I think that's what's causing the problems.
>
The right recursive production will waste the parse stack.
> On the contrary the C#'s parser has a similar construct and does not
> throw errors . So I've sort of given up on the bug right now :-)
>
All recursive productions seem to left recursive, so there should be no (such)
problem.
> This is a real bug and was encountered in an auto-generated parser file
> which had a whole lot of states .. (you could guess ;)
>
/Patric