for loop with boolean expression in from..to gives fatal err 200109302
Original Reporter info from Mantis: benjawin
-
Reporter name:
Original Reporter info from Mantis: benjawin
- Reporter name:
Description:
A for loop with a boolean loop variable and start or end
conditions that are not constants cannot be compiled because
fatal err occurs
///source: boolloop.pas
{$apptype console}
program boolloop;
var
a, b: boolean;
begin
a:=true;
for b:=not a to true do writeln('now b is ',b);
end.
//end source
Steps to reproduce:
fpc boolloop.pas
see attached file
Mantis conversion info:
- Mantis ID: 15750
- OS: windows XP home ed.
- OS Build: sp3
- Build: 2009/12/18
- Platform: i386-win32
- Version: 2.4.0
- Fixed in version: 2.6.0
- Fixed in revision: 15071 (#d8a902b4)