gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: [Gm2] M2LexBuf.mod problem with CurrentTokNo and ListOfTokens.LastB


From: Scott Robinson
Subject: Fwd: [Gm2] M2LexBuf.mod problem with CurrentTokNo and ListOfTokens.LastBucketOffset
Date: Tue, 28 Oct 2008 14:34:59 -0500

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]