Dreadful, mind-chilling CSE failure
Original Reporter info from Mantis: runewalsh
-
Reporter name:
Original Reporter info from Mantis: runewalsh
- Reporter name:
Description:
Code below breaks under -O2 or higher: function F returns just 4*n. -OoNOCSE makes it work.
Steps to reproduce:
function F(n: SizeUint): SizeUint;
begin
result := 4 * n + 4 * n;
end;
begin
writeln('Reference F(5): ', 4 * 5 + 4 * 5);
writeln(' Actual F(5): ', F(5));
end.
Mantis conversion info:
- Mantis ID: 38527
- Build: r48765 [2021/02/22]
- Platform: i386-win32, x86_64-win64
- Version: 3.3.1
- Fixed in revision: 48792 (#2cd69512)