Internal Error 2014011604 with 64bit integers
Summary
Internal Error 2014011604 on multiplying an int64 function result by zero
System Information
FPC 3.2.3, i386-win32; stable version incl. fixes branch of today. Other versions not tested.
Example Project
Compile fpc -CO interror2014011604.pas
Other settings (target CPU, optimisation) don't seem to matter; only -CO is important (or {$Q-} in code)
What is the current bug behavior?
Compilation causes Internal Error
What is the expected (correct) behavior?
No Internal Error
Relevant logs and/or screenshots
program test;
function somenumber: int64;
begin
exit(2);
end;
function foo: int64;
begin
exit (0*somenumber); //Internal error 2014011604
end;
begin
end.