View Issue Details

IDProjectCategoryView StatusLast Update
0037152FPCCompilerpublic2020-05-30 11:18
ReporterZamrony P. Juhara Assigned ToJonas Maebe  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.4 
Fixed in Version3.3.1 
Summary0037152: mod operator cause "Unreachable code" warning in ISO mode
Descriptionmod operator cause "Unreachable code" warning in ISO mode
Steps To Reproduce1) Create following program and name as testiso.pas

var t : integer;
begin
    t := 100;
    t:= t mod 10;
    writeln(t);
end.

2) 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
TagsNo tags attached.
Fixed in Revision44051
FPCOldBugId
FPCTarget-
Attached Files

Activities

delfion

2020-05-30 09:03

reporter   ~0123137

$fpc -Miso testiso.pas
Free Pascal Compiler version 3.3.1 [2020/05/21] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling testiso.pas
Linking testiso
7 lines compiled, 0.1 sec

Jonas Maebe

2020-05-30 11:18

manager   ~0123143

Indeed, recently fixed in trunk by Florian.

Issue History

Date Modified Username Field Change
2020-05-30 04:48 Zamrony P. Juhara New Issue
2020-05-30 09:03 delfion Note Added: 0123137
2020-05-30 11:18 Jonas Maebe Assigned To => Jonas Maebe
2020-05-30 11:18 Jonas Maebe Status new => resolved
2020-05-30 11:18 Jonas Maebe Resolution open => fixed
2020-05-30 11:18 Jonas Maebe Fixed in Version => 3.3.1
2020-05-30 11:18 Jonas Maebe Fixed in Revision => 44051
2020-05-30 11:18 Jonas Maebe FPCTarget => -
2020-05-30 11:18 Jonas Maebe Note Added: 0123143