Try..Finally..End statements with empty Try Blocks but with bon-empty finally-blocks are wrongly optimized out.
Original Reporter info from Mantis: benjamin@0ok.de @bero1985
-
Reporter name: Benjamin Rosseaux
Original Reporter info from Mantis: benjamin@0ok.de @bero1985
- Reporter name: Benjamin Rosseaux
Description:
Try..Finally..End statements with empty Try Blocks but with bon-empty finally-blocks are wrongly optimized out. See testcase:
program EmptyTryFinally1;
{$mode delphi}
{$apptype console}
uses
{$IFDEF UNIX}
cthreads,
{$ENDIF}
Classes
{ you can add units after this };
begin
try
// Empty try statement block
finally
WriteLn('I should actually visible . . .'); // but I'm not
end;
readln;
end.