Constant division by zero for floating point should be allowed in {$mode delphi}
Original Reporter info from Mantis: Pfropfen@gmx.net
-
Reporter name: Andreas Rumpf
Original Reporter info from Mantis: Pfropfen@gmx.net
- Reporter name: Andreas Rumpf
Description:
The following fragment compiles under Delphi, but not under FPC:
{$ifdef fpc}
{$mode delphi}
{$endif}
const
Inf = 1.0 / 0.0;
FPC says: Error: division by zero
Mantis conversion info:
- Mantis ID: 7584
- Fixed in version: 2.2.4
- Fixed in revision: 12069 (#0f69d455)
- Monitored by: » dkoehler (Dieter Köhler)