FPC196 crashes when compiling bad:=2/0;
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
FPC196 crashes when compiling a oneliner
baaaad:=1/0; { 0 is the zero }
The probable cause: an optimizer wants to save runtime by computing constant expressions at compile time. Dijkstra would call it premature optimization. I say: Better to crash on the ground(= compiler) than in-flight (= runtime :-)
Additional information:
Reporter: Naj Kejah
EMail: universario at hotmail dot com
Mantis conversion info:
- Mantis ID: 5553
- OS: GO32V2
- Version: 1.9.6
- Fixed in version: 2.0.2