-O2 -funbox-strict-fields causes incorrect behavior
The attached code behaves incorrectly when compiled with -O2 -funbox-strict-fields. Normally it correctly prints [1,2,3,4], but with both flags enabled, it prints [1,3,0,0].
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |