Re: [fpc-devel] Different handling of try..except depending on OS?

2020-12-09 Thread Sven Barth via fpc-devel
Am 09.12.2020 um 23:45 schrieb Bart via fpc-devel: Compiled with fpc 3.2.0 on Windows it will output (both 32 and 64 bit): Runtime error 201 at $004015F1 $004015F1 $00407307 Compiled with fpc 3.2.0 on linux X86_64 it will output Except block Finally block On Windows you need to include th

[fpc-devel] Different handling of try..except depending on OS?

2020-12-09 Thread Bart via fpc-devel
Hi, Consider this code: program Test; {$apptype console} {$ifdef fpc} {$mode objfpc} {$endif fpc} {$R+} var Arr: array[1..2] of integer; i: Integer; begin i:=5; try try Arr[i] := 1; except writeln('Except block'); end; finally writeln('Finally block'); end

Re: [fpc-devel] r47731 doesn't build!

2020-12-09 Thread Michael Van Canneyt via fpc-devel
Already fixed. Michael. On Wed, 9 Dec 2020, Pascal Riekenberg via fpc-devel wrote: Target OS: Win32 for i386 Compiling pastojs\src\pas2jsfiler.pp Compiling pastojs\src\pas2jsfileutils.pp Compiling pastojs\src\fppas2js.pp Writing Resource String Table file: fppas2js.rsj pas2jsfiler.pp(210,5) E

[fpc-devel] r47731 doesn't build!

2020-12-09 Thread Pascal Riekenberg via fpc-devel
Target OS: Win32 for i386 Compiling pastojs\src\pas2jsfiler.pp Compiling pastojs\src\pas2jsfileutils.pp Compiling pastojs\src\fppas2js.pp Writing Resource String Table file: fppas2js.rsj pas2jsfiler.pp(210,5) Error: Expected another 1 array elements pas2jsfiler.pp(252,41) Error: Illegal expression