Simon Sobisch [13/01/2023 20.43]:
I'd have to check the details but if you say there is a loop, then I
have no reason to believe this is wrong.
Thank you for posting this!
... but: both GnuCOBOL 2.2 and 3.2preview compile this fine without a
loop, so please upgrade if possible.
The compilation seems to hang here too. I
$ cobc --info
cobc (GnuCOBOL) 4.0-early-dev.0
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch,
Edward Hart
Built Dec 31 2022 12:28:03
Packaged Jul 28 2020 13:15:39 UTC
C version "12.2.0"
build information
build environment : x86_64-pc-linux-gnu
CC : gcc
C version : "12.2.0"
CPPFLAGS :
CFLAGS : -O2 -pipe -finline-functions -fsigned-char
-Wall -Wwrite-strings -Wmissing-prototypes
-Wno-format-y2k
LD : /usr/bin/ld -m elf_x86_64
LDFLAGS : -Wl,-z,relro,-z,now,-O1
GnuCOBOL information
COB_CC : gcc
COB_CFLAGS : -pipe -I/usr/local/include -Wno-unused
-fsigned-char -Wno-pointer-sign
COB_DEBUG_FLAGS : -ggdb3 -fasynchronous-unwind-tables
COB_LDFLAGS :
COB_LIBS : -L/usr/local/lib -lcob
COB_CONFIG_DIR : /usr/local/share/gnucobol/config
COB_SCHEMA_DIR : /usr/local/share/gnucobol/schema
COB_COPY_DIR : /usr/local/share/gnucobol/copy
COB_MSG_FORMAT : GCC
COB_OBJECT_EXT : o
COB_MODULE_EXT : so
COB_EXE_EXT :
64bit-mode : yes
BINARY-C-LONG : 8 bytes
endianness : little-endian
native character set : ASCII
extended screen I/O : ncursesw
variable file format : 0
sequential file handler : built-in
indexed file handlers : V-ISAM, BDB
default indexed handler : BDB
mathematical library : GMP
XML library : libxml2
JSON library : cjson
--
Hilsen Harald
Слава Україні!