View Issue Details

IDProjectCategoryView StatusLast Update
0038940FPCCompilerpublic2021-05-28 21:26
ReporterReiner Sombrowsky Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
OSWindows 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0038940: The following procedure hangs,
Descriptionprocedure Test;
var b:boolean;
begin
// the following loop should be done 2 time, but it hangs up;
 b:=true;
 repeat
   b:=not b; // first time b is set to false thats why the loop should be done again
              // second time b is set to true thats why the loop should be leave,
              // but hangs up
 until b;
end;
TagsNo tags attached.
Fixed in Revision49405
FPCOldBugId
FPCTarget-
Attached Files

Activities

Reiner Sombrowsky

2021-05-28 06:03

reporter   ~0131061

Last edited: 2021-05-28 12:33

View 2 revisions

procedure Test1;
var b:integer;
begin
// the following loop should be done 2 times, and it works correct;
 b:=1;
 while b>=0 do begin
   dec(b);
 end;
end;

procedure Test2;
var b:integer;
begin
// the following loop should be done 2 times, and it works correct;
 b:=1;
 repeat
   dec(b);
 until (b<0);
end;

Marco van de Voort

2021-05-28 10:46

manager   ~0131067

Last edited: 2021-05-28 10:46

View 2 revisions

Using -O2 and higher. 3.2.2 has no problem

Reiner Sombrowsky

2021-05-28 12:49

reporter   ~0131069

Last edited: 2021-05-28 12:53

View 4 revisions

I have tested with -O0, -O1, here it works correct,
but with -O2, -O3 and -O4 it hangs up.
I have tested with CPU32 and CPU64.
In previous version 3.2.2 it works correct but not in the last trunk revision 49404 (3.3.1).

Issue History

Date Modified Username Field Change
2021-05-28 05:55 Reiner Sombrowsky New Issue
2021-05-28 06:03 Reiner Sombrowsky Note Added: 0131061
2021-05-28 10:46 Marco van de Voort Note Added: 0131067
2021-05-28 10:46 Marco van de Voort Note Edited: 0131067 View Revisions
2021-05-28 12:33 Reiner Sombrowsky Note Edited: 0131061 View Revisions
2021-05-28 12:49 Reiner Sombrowsky Note Added: 0131069
2021-05-28 12:50 Reiner Sombrowsky Note Edited: 0131069 View Revisions
2021-05-28 12:52 Reiner Sombrowsky Note Edited: 0131069 View Revisions
2021-05-28 12:53 Reiner Sombrowsky Note Edited: 0131069 View Revisions
2021-05-28 21:26 Florian Assigned To => Florian
2021-05-28 21:26 Florian Status new => resolved
2021-05-28 21:26 Florian Resolution open => fixed
2021-05-28 21:26 Florian Fixed in Version => 3.3.1
2021-05-28 21:26 Florian Fixed in Revision => 49405
2021-05-28 21:26 Florian FPCTarget => -