mod operator cause "Unreachable code" warning in ISO mode
Original Reporter info from Mantis: zamronypj @zamronypj
-
Reporter name: Zamrony P. Juhara
Original Reporter info from Mantis: zamronypj @zamronypj
- Reporter name: Zamrony P. Juhara
Description:
mod operator cause "Unreachable code" warning in ISO mode
Steps to reproduce:
- Create following program and name as testiso.pas
var t : integer;
begin
t := 100;
t:= t mod 10;
writeln(t);
end.
- Compile with ISO mode
$ fpc -Miso testiso.pas
Free Pascal Compiler version 3.0.4 [2017/10/03] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling testiso.pas
testiso.pas(4,11) Warning: unreachable code
Mantis conversion info:
- Mantis ID: 37152
- Build: [2017/10/03] for x86_64
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 44051 (#1486ab7c)
- Monitored by: » @CuriousKit (J. Gareth Moreton)