Codegen warnings with EXTDEBUG
Original Reporter info from Mantis: Blaise
-
Reporter name: Blaise.ru
Original Reporter info from Mantis: Blaise
- Reporter name: Blaise.ru
Description:
The following sample program causes two internal compiler warnings:
Warning: Location not equal to expectloc: calln
Warning: tgobj: (ResetTempgen) temp at pos -24 with size 8 and type normal from pos 5:21 not freed at the end of the procedure
Steps to reproduce:
{$warnings on}
function foo(const x: real): integer;
begin
foo := trunc(x) + trunc(frac(x) * 2)
end;
begin
writeln( foo(1.49) )
end.
Mantis conversion info:
- Mantis ID: 18561
- OS: Windows
- Build: r16786
- Platform: x86
- Version: 2.5.1
- Monitored by: » Blaise (Blaise.ru)