[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] comiler crash with x:=VAL(LONGREAL,MAX(REAL));
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] comiler crash with x:=VAL(LONGREAL,MAX(REAL)); |
Date: |
Mon, 23 Feb 2015 10:27:54 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Michael Riedl <address@hidden> writes:
> 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
Hi Michael,
thanks for the bug report and test code - will investigate!
regards,
Gaius