"No memory left" on case statement compilation.
Original Reporter info from Mantis: Dmytro Remeniak
-
Reporter name: Dmytro Remeniak
Original Reporter info from Mantis: Dmytro Remeniak
- Reporter name: Dmytro Remeniak
Description:
CASE...OF statement compilation error "Fatal: No memory left".
Steps to reproduce:
program Project1;
function CalcSmth(const AValue: Integer): Integer;
begin
case AValue of
-9999999..-1000000: Result := 2;
-999999..-100000: Result := 7;
-99999..-10000: Result := 5;
-9999..-1000: Result := 6;
-999..-100: Result := 3;
-99..-10: Result := 2;
-9..-1: Result := 3;
0..9: Result := 5;
10..99: Result := 2;
100..999: Result := 3;
1000..9999: Result := 1;
10000..99999: Result := 5;
100000..999999: Result := 8;
1000000..9999999: Result := 6;
end;
end;
begin
CalcSmth(0);
end.
Mantis conversion info:
- Mantis ID: 32115
- OS: Windows
- OS Build: 7 Pro
- Platform: Intel x86 / x64
- Version: 3.0.2
- Fixed in version: 3.1.1
- Fixed in revision: 37390 (#cc443281)
- Monitored by: » Dmytro Remeniak (Dmytro Remeniak), » @CuriousKit (J. Gareth Moreton)