[M3devel] compiler bug

Rodney M. Bates rodney_bates at lcwb.coop
Tue Jan 19 19:09:38 CET 2016


I have a simple fix that made this RT crash go away, but now I can't rebuild
the libraries/compiler from all source, with different symptoms for different
methods.

On 01/17/2016 10:01 PM, Peter McKinna wrote:
> This is unusual.
>
> PROCEDURE Test() =
>    VAR x,m := 1;
>    BEGIN
>      x := Word.Extract(x,m,n);
>    END Test;
>
> induces
>
> new source -> compiling test.m3
> "../src/test.m3", line 190: undefined (n)
>
>
> ***
> *** runtime error:
> ***    An enumeration or subrange value was out of range.
> ***    file "../AMD64_LINUX/WordExtract.m3 => ../src/builtinWord/Extract.mg", l
> ine 120
> ***
>
> Aborted (core dumped)
>
>
> fix the undefined n and it compiles ok.
>
> Any takers to fix this?
>
> Should have a bug tracking system really.
>
> Peter
>
>
>
> _______________________________________________
> M3devel mailing list
> M3devel at elegosoft.com
> https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel
>

-- 
Rodney Bates
rodney.m.bates at acm.org



More information about the M3devel mailing list