View Issue Details

IDProjectCategoryView StatusLast Update
0037508FPCCompilerpublic2020-08-08 19:40
Reporter0h2o Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformamd64 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0037508: Uninitialized variable will trigger an internal error(200306031) in O3
DescriptionHi again, the following program will trigger an internal error(200306031) in ppcx64 when -O3 is specified:

var a, b : integer;
begin
  b := 0;
  b := b - a - a { `b := b - a` won't trigger the error }
end.

It seems that this can be related to an undefined behavior though, assigning a value to `a` will eliminate the internal error.
Steps To Reproduce1. build the latest fpc-3.3.1 with fpc-3.2.0
2. path_to_fpc-3.3.1/compiler/ppcx64 -O3 ./ice9.pas
TagsNo tags attached.
Fixed in Revision46309
FPCOldBugId
FPCTarget-
Attached Files

Relationships

has duplicate 0037286 resolvedJonas Maebe Hedgewars failed to build with fpc 3.2.0 with "Internal error 200306031" 

Activities

0h2o

2020-08-07 18:41

reporter  

ice9.pas (59 bytes)   
var a, b : integer;
begin 
  b := 0;
  b := b - a - a 
end 
ice9.pas (59 bytes)   

Issue History

Date Modified Username Field Change
2020-08-07 18:41 0h2o New Issue
2020-08-07 18:41 0h2o File Added: ice9.pas
2020-08-07 23:43 Florian Assigned To => Florian
2020-08-07 23:43 Florian Status new => resolved
2020-08-07 23:43 Florian Resolution open => fixed
2020-08-07 23:43 Florian Fixed in Version => 3.3.1
2020-08-07 23:43 Florian Fixed in Revision => 46309
2020-08-07 23:43 Florian FPCTarget => -
2020-08-08 19:40 Jonas Maebe Relationship added has duplicate 0037286