[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CHAR as FOR loop control variable
From: |
Gaius Mulley |
Subject: |
Re: CHAR as FOR loop control variable |
Date: |
Tue, 02 May 2023 16:08:35 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Michael Riedl <udo-michael.riedl@t-online.de> writes:
> Hallo Gaius,
>
> just recognised that GM2 (14.0.0) does not like a CHAR type FOR loop
> control variable any more ... :-)
>
> The compilation gave quite miss-leading error messages
>
> mriedl@laptop:~/Modula-2/InOut/quellen.gm2$make RealConvert.o
> ~/Modula-2/Numerik/TestRoutinen/Tools/convreal < RealConvert.miĀ >
> RealConvert.mod
> gm2 -c -fiso -flibs=iso -I
> /usr/local/gm2/lib/gcc/i686-pc-linux-gnu//14.0.0/m2/m2iso -I
> /usr/local/gm2/lib/gcc/i686-pc-linux-gnu//14.0.0/m2/m2pim -I
> /home/mriedl/Modula-2/Numerik/quellen.gm2 -I
> /home/mriedl/Modula-2/InOut/quellen.gm2 -I
> /home/mriedl/Modula-2/Numerik/TestRoutinen/LinAlg -L
> /home/mriedl/Modula-2/Numerik/quellen.gm2 -L
> /home/mriedl/Modula-2/InOut/quellen.gm2 -L
> /usr/local/gm2/lib/gcc/i686-pc-linux-gnu//14.0.0/m2/m2iso -L
> /usr/local/gm2/lib/gcc/i686-pc-linux-gnu//14.0.0/m2/m2pim -O2 -g -O2
> -fno-m2-pluginĀ RealConvert.mod
> /usr/local/gm2/lib/gcc/i686-pc-linux-gnu//14.0.0/m2/m2iso/ConvTypes.def:38:1:
> Fehler: type incompatibility, attempting to use a string ('_T37') when
> a CHAR is expected
> /usr/local/gm2/lib/gcc/i686-pc-linux-gnu//14.0.0/m2/m2iso/ConvTypes.def:38:1:
> Fehler: type incompatibility, attempting to use a string ('_T37') when
> a CHAR is expected
> /usr/local/gm2/lib/gcc/i686-pc-linux-gnu//14.0.0/m2/m2iso/ConvTypes.def:38:1:
> Fehler: type incompatibility, attempting to use a string ('_T37') when
> a CHAR is expected
> /usr/local/gm2/lib/gcc/i686-pc-linux-gnu//14.0.0/m2/m2iso/ConvTypes.def:38:1:
> Fehler: type incompatibility, attempting to use a string ('_T37') when
> a CHAR is expected
> Makefile:385: recipe for target 'RealConvert.o' failed
> make: *** [RealConvert.o] Error 1
>
> Here the simplified code reproducing the error
Hi Michael,
ah yes many thanks! This looks like the bug was introduced after fixing
the constant char + constant char -> string. I suspect the internal INC
(ch) is creating a string :-),
Will fix it..
regards,
Gaius
Re: CHAR as FOR loop control variable, Gaius Mulley, 2023/05/04
Re: CHAR as FOR loop control variable, Gaius Mulley, 2023/05/04