gm2
[Top][All Lists]
Advanced

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

[Gm2] comiler crash with x:=VAL(LONGREAL,MAX(REAL));


From: Michael Riedl
Subject: [Gm2] comiler crash with x:=VAL(LONGREAL,MAX(REAL));
Date: Mon, 23 Feb 2015 09:56:32 +0100

Gaius,

sorry for sending another error report ...

The following simple example

MODULE MaxReal;

VAR   x : LONGREAL;
      y : REAL;

BEGIN
      y:=MAX(REAL);
      x:=VAL(LONGREAL,y);

      x:=VAL(LONGREAL,MAX(REAL));

END MaxReal.

leads to a compiler crash (for the last code line) - used to produce a
"reasonable" big number.

:~/Modula-2/Beispiele$ gm2 MaxReal.mod
-I /usr/local/gm2/lib/gcc/i686-pc-linux-gnu/4.7.4/m2/iso
-I /usr/local/gm2/lib/gcc/i686-pc-linux-gnu/4.7.4/m2/pim/
MaxReal.mod:9:1:*** fatal error
*** 
../../gcc-4.7.4+gm2-git-latest/gm2/gcc-versionno/gcc/gm2/gm2-compiler/M2ALU.mod:752:1:***
internal error *** expecting type of constant to be a whole number
cc1gm2: internal compiler error: Aborted Please submit a full bug
report, with preprocessed source if appropriate. See
<http://gcc.gnu.org/bugs.html> for instructions.

Hope that's nothing great - and splitting to two statements is a good
work-around.

Regard / Gruß

Michael



reply via email to

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