gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] gm2 segfault (checked with GPM and XDS)


From: Andreas Fischlin
Subject: Re: [Gm2] gm2 segfault (checked with GPM and XDS)
Date: Fri, 12 Oct 2007 19:57:30 +0200
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

That's a correct diagnosis and the other compilers err, if they tolerate such a constant declaration.

Andreas

John O Goyo wrote:
Gaius Mulley wrote:
Dmitry Shatrov <address@hidden> writes:
[...]
MODULE test;

VAR A : CARDINAL;

CONST B = A;

END test.
[...]
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
[...]

I tried compiling Dmitry's example with the GPM and XDS compilers (both ISO).

Here is GPM's response:
=================================================
    5   CONST B = A;
 ****   ..........^ SemanticError #  208
 **** 208 Identifier is not a constant ****
=================================================


Here is XDS's response:
=================================================
XDS Modula-2 v2.40 [x86, v1.50] - build 10.05.2005

Compiling "test.mod"

* [test.mod 5.11 E087]
* expression should be constant
CONST B = $A;
errors  1, no warnings, lines    7, time  0.05
=================================================

I suspect that we are seeing a JPI extension.
(I have the JPI manuals at home and will check over
the weekend.)

Sincerely,
john


_______________________________________________
gm2 mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gm2

--

________________________________________________________________________
Andreas Fischlin, Ph.D., Group Director

Terrestrial Systems Ecology
Institute of Integrative Biology: Ecology, Evolution, Infectious Disease
Department of Environmental Sciences, ETH Zurich

Address:
ETH Zurich, CHN E35.1
8092 Zurich, Switzerland

Phone: +41 44 633-6090 / Fax: +41 44 633-1031
http://www.sysecol.ethz.ch/Staff/af/
http://www.sysecol.ethz.ch/

    _/_/_/ _/_/_/ _/  _/
   _/       _/   _/  _/   Eidgenoessische Technische Hochschule Zuerich
  _/_/_/   _/   _/_/_/   Swiss Federal Institute of Technology Zurich
 _/       _/   _/  _/   Ecole polytechnique federale de Zurich
_/_/_/   _/   _/  _/   Politecnico federale de Zurigo

            Make it as simple as possible, but distrust it!
________________________________________________________________________





reply via email to

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