Warning: unreachable code when using asserts with {$INLINE ON}
Original Reporter info from Mantis: Hixie
-
Reporter name: Ian Hickson
Original Reporter info from Mantis: Hixie
- Reporter name: Ian Hickson
Description:
Compiling the following program gives "Warning: unreachable code" around the asserts and calls to procedures using asserts.
{$INLINE ON}
{$ASSERTIONS ON}
program test;
procedure TestFunc();
begin
Assert(True);
end;
procedure TestFuncInline(); inline;
begin
Assert(True);
end;
begin
TestFunc();
TestFuncInline(); // Warning: unreachable code
end.
Mantis conversion info:
- Mantis ID: 26467
- Build: trunk from 2014/06/24
- Platform: x86_64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 29293 (#c9ba9665)