[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: [Gm2] M2LexBuf.mod problem with CurrentTokNo and ListOfTokens.L
From: |
Gaius Mulley |
Subject: |
Re: Fwd: [Gm2] M2LexBuf.mod problem with CurrentTokNo and ListOfTokens.LastBucketOffset |
Date: |
28 Oct 2008 21:46:00 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
"Scott Robinson" <address@hidden> writes:
> Forgot to CC the list...
>
> On Tue, Oct 28, 2008 at 11:34 AM, Gaius Mulley <address@hidden> wrote:
> >
> > Hi Scott,
> >
> > interesting - I've now added an assert to 491:
> >
> > Assert(CurrentTokNo>=ListOfTokens.LastBucketOffset) ;
> >
> > Do you have some test code which causes the compiler to fall over?
>
> Hello Gaius,
>
> Yes, managed to create a test case that recreates the problem this
> morning. It consists of the definition and implementation module
> below.
>
> inserttok1.def:
>
> DEFINITION MODULE inserttok1;
>
> (* Just filling the token buffer up *)
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR VAR
> VAR VAR VAR VAR VAR VAR VAR VAR VAR
>
> (* Intentional misspelled VAR keyword *)
> PROCEDURE whatever( VAT s: ARRAY OF CHAR) : CARDINAL;
>
> END inserttok1.
>
> inserttok1.mod:
>
> IMPLEMENTATION MODULE inserttok1;
>
> (* Hit this problem in a definition module *)
>
> END inserttok1.
>
> $gm2 -g -c inserttok1.mod
> gm2: Internal error: Segmentation fault (program cc1gm2)
> Please submit a full bug report.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>
> Thanks,
> Scott
Hi Scott,
many thanks for the test code, always easier to fix with it.
Now fixed in the CVS,
regards,
Gaius