gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] gm2 segfault


From: Dmitry Shatrov
Subject: Re: [Gm2] gm2 segfault
Date: Tue, 09 Oct 2007 22:57:54 +0400

В Втр, 09/10/2007 в 15:47 +0100, Gaius Mulley пишет:
> Dmitry Shatrov <address@hidden> writes:
> 
> > The following program causes a segmentation fault (I do "gm2 -c
> > test.mod")
> > 
> > 
> > MODULE test;
> > 
> > VAR A : CARDINAL;
> > 
> > CONST B = A;
> > 
> > END test.
> 
> Hi Dmitry,
> 
> can you check that you've done a cvs update in the gcc-4.1.2/gcc/gm2
> directory.  Or you could 
> 
> cd gcc-4.1.2/gcc
> rm -rf gm2
> cvs -z3 -d:pserver:address@hidden:/sources/gm2 co gm2
> cd ../..
> 
> and rebuild.
> 
> My version of gm2 now detects this as a compile time error,

Same for me now (it says "cannot assign a variable to a constant").

I have a program for JPI Modula-2 in the front of me, and it looks like
in JPI such assignment is OK. Is it a deviation from PIM and/or ISO?

Regards,
Dmitry





reply via email to

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