gm2
[Top][All Lists]
Advanced

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

Re: gm2 internal compiler error report


From: Alice Osako
Subject: Re: gm2 internal compiler error report
Date: Sun, 10 Mar 2024 09:24:14 -0400
User-agent: Mozilla Thunderbird



Gaius Mulley:
The language references I use are:  "Programming in Modula-2" 4th Ed
(and 2nd, 3rd) by Niklaus Wirth.

   https://freepages.modula2.org/report4/modula-2.html

and the ISO m2 standard, which sadly is not available online.
(Also worth exploring: https://freepages.modula2.org/tutor.html).
Maybe someone on the list would know whether there are ISO m2 books
freely available?
Ah, thank you very much! While I had found the tutorial, somehow I had missed the reference book before; this helps tremendously.
Thanks for the bug report - I believe this is fixed in the latest git
gcc repro (gcc-14):

$ gm2 -g -Idefs -fiso -c impls/UTF8.mod 
impls/UTF8.mod:47:13: error: In procedure ‘GetExtChar’: type incompatibility between ‘CARDINAL’ and ‘BYTE’
   47 |    RETURN b - {7, 6};
      |           ~~^~~~~~~~

$ gm2 --version
gm2 (GCC) 14.0.1 20240308 (experimental)

I'll back port the fix to gm2 13.2

Again, thank you for your hard work and patience.


reply via email to

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