Range check error on nan assignment to TDateTime

Original Reporter info from Mantis: BeniBela @benibela
  • Reporter name: Benito van der Zander

Description:

    function foo: TDateTime;
    begin
      result := NaN;
    end;

causes a range check error during compilation for ARM

It did not happen when compiled for x86

Mantis conversion info:

  • Mantis ID: 27466
  • OS: Linux
  • Build: 23969
  • Platform: x86_64 -> ARM
  • Version: 2.7.1