Bug in Harbour compiler

102 views
Skip to first unread message

Randy

unread,
Jan 28, 2024, 5:49:28 AMJan 28
to harbou...@googlegroups.com
Hello Developers,

The "ELSE" at line 38 in the attached sample source file is EXCLUDED
in the resulting .PPO (and .OBJ) file. Also, if you remove the
comment on line 37 (to the right), you get a compiler error for line 38.

This was tested using the Harbour binary build...

Version: Harbour 3.2.0dev (r2307062207)
Compiler: MinGW GNU C 7.3 (32-bit)
Platform: Windows 10 10.0
PCode version: 0.3
ChangeLog last entry: 2023-07-07 00:07 UTC+0200 Przemyslaw Czerpak
(druzus/at/poczta.onet.pl)
ChangeLog ID: 64cc407e0b5c9e03f223550048f8415010744663
Built on: Aug 14 2023 00:13:10
Build options: (Clipper 5.3b) (Clipper 5.x undoc)

Thank you,
Randy.
TEST.PRG.TXT

Andrzej P. Wozniak

unread,
Jan 28, 2024, 9:19:34 AMJan 28
to harbou...@googlegroups.com
From: Randy <ra...@palmas.com>
Sent: Saturday, January 27, 2024 5:09 PM

> Hello Developers,
>
> The "ELSE" at line 38 in the attached sample source file is EXCLUDED
> in the resulting .PPO (and .OBJ) file. Also, if you remove the
> comment on line 37 (to the right), you get a compiler error for line 38.

There is a wrong EOL mark (0x0D, CR, old MacOS) before ELSE. All other
lines are ended with Windows/DOS/Internet EOL 0x0DOA (CRLF). You should
use better editor.

--
Regards from Poland
Andrzej P. Woźniak

Reply all
Reply to author
Forward
0 new messages