View Issue Details

IDProjectCategoryView StatusLast Update
0037449FPCCompilerpublic2020-07-31 14:26
Reporter0h2o Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformamd64OSUbuntu 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0037449: Internal error 200609073 occurs when mod -1
DescriptionThe following program seems meaningless, but it will trigger an internal error 200609073 when compiled by ppcx64 etc.

var x:integer;
begin
    x := 1;
    x := x mod -1; { buggy }
end.
Steps To Reproduce1. build fpc-3.3.1 with fpc-3.2.0
2. path_to_fpc-3.3.1/compiler/ppcx64 ./poc.pas
Additional InformationThe error seems to only exist in FPC-3.3.1, the code can be compiled by previous versions without any errors.
TagsNo tags attached.
Fixed in Revision45969
FPCOldBugId
FPCTarget-
Attached Files

Activities

0h2o

2020-07-30 04:39

reporter  

poc.pas (58 bytes)   
var x:integer;
begin
    x := 1;
    x := x mod -1;
end.
poc.pas (58 bytes)   

Thaddy de Koning

2020-07-31 08:47

reporter   ~0124427

Last edited: 2020-07-31 08:48

View 2 revisions

What revision? When using trunk that is important.
If it fails, it is probably CPU related. On arm it works.
I suggest you test with the most recent trunk if you don't know the revision.

Sven Barth

2020-07-31 14:26

manager   ~0124431

@Thaddy: it's rather useless to query for the revision when the bug has already been marked as fixed...

Issue History

Date Modified Username Field Change
2020-07-30 04:39 0h2o New Issue
2020-07-30 04:39 0h2o File Added: poc.pas
2020-07-30 22:35 Florian Assigned To => Florian
2020-07-30 22:35 Florian Status new => resolved
2020-07-30 22:35 Florian Resolution open => fixed
2020-07-30 22:35 Florian Fixed in Version => 3.3.1
2020-07-30 22:35 Florian Fixed in Revision => 45969
2020-07-30 22:35 Florian FPCTarget => -
2020-07-31 08:47 Thaddy de Koning Note Added: 0124427
2020-07-31 08:48 Thaddy de Koning Note Edited: 0124427 View Revisions
2020-07-31 14:26 Sven Barth Note Added: 0124431