gm2
[Top][All Lists]
Advanced

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

Re: Still more :)


From: Gaius Mulley
Subject: Re: Still more :)
Date: Mon, 11 May 2020 09:37:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Dragiša Durić <address@hidden> writes:

> Hi Gaius,
>
> /opt/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/m2/m2iso/Storage.def:58:1: 
> error: the 2nd element does not exist in the array declaration used by the 
> compound literal
>
> My DEFINITION MODULE is like:
>
> DEFINITION MODULE mStrIO;
>
> FROM 
>   SYSTEM
> IMPORT
>   ADDRESS;
>
> TYPE
>   Arr1  = ARRAY [0..0] OF ADDRESS;  
>   Arr2  = ARRAY [0..1] OF ADDRESS;  
>   Arr3  = ARRAY [0..2] OF ADDRESS;  
>   Arr4  = ARRAY [0..3] OF ADDRESS;  
>   Arr5  = ARRAY [0..4] OF ADDRESS;  
>   Arr6  = ARRAY [0..5] OF ADDRESS;  
>   Arr7  = ARRAY [0..6] OF ADDRESS;  
>   Arr8  = ARRAY [0..7] OF ADDRESS;  
>   Arr9  = ARRAY [0..8] OF ADDRESS;  
>   Arr10 = ARRAY [0..9] OF ADDRESS;  
>   Arr11 = ARRAY [0..10] OF ADDRESS;  
>   Arr12 = ARRAY [0..11] OF ADDRESS;  
>   Arr13 = ARRAY [0..12] OF ADDRESS;  
>   Arr14 = ARRAY [0..13] OF ADDRESS;  
>   Arr15 = ARRAY [0..14] OF ADDRESS;  
>   Arr16 = ARRAY [0..15] OF ADDRESS;  
>   Arr17 = ARRAY [0..16] OF ADDRESS;  
>   Arr18 = ARRAY [0..17] OF ADDRESS;  
>   Arr19 = ARRAY [0..18] OF ADDRESS;  
>   Arr20 = ARRAY [0..19] OF ADDRESS;
>   Arr21 = ARRAY [0..20] OF ADDRESS;
>   Arr22 = ARRAY [0..21] OF ADDRESS;
>   
>   ArrMax = Arr22;
>
> CONST
>   Arr0 = Arr1 { NIL };
> ...
>
>
> And when this DEF is included in my compile... above error. Out of
> place.
>
> Another one out of places was:
>
> /opt/local/lib/gcc/x86_64-pc-linux-gnu/11.0.0/m2/m2iso/Storage.def:58:1:
> error: not all variant record alternatives in the CASE clause are
> specified, hint you either need to specify each value of ‘CARDINAL’ or
> use an ELSE clause
>
> Easy to fix now I am in shape :), but probably something You would like
> to fix.
>
> BTW, did You receive another archive I sent to You?
>
> Regards,
> Dragiša

Hello Dragiša,

thank you for the bug report - really useful to see these out of
location errors.  Will fix it.  I've not yet seen the archive - will
search various email folders,




reply via email to

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