gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] gm2 segfault


From: Gaius Mulley
Subject: Re: [Gm2] gm2 segfault
Date: 12 Oct 2007 18:25:45 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Dmitry Shatrov <address@hidden> writes:

> В Втр, 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

Hi Dmitry,

that is certainly odd behaviour - I think that

> > > VAR A : CARDINAL;
> > > 
> > > CONST B = A;

should always generate a compile time error for both PIM and ISO

regards,
Gaius




reply via email to

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