Bug ID | 198 |
---|---|
Summary | Optimization makes incorrect results |
Product | GDC |
Version | 4.9.x |
Hardware | x86_64 |
OS | Linux |
Status | NEW |
Severity | critical |
Priority | Normal |
Component | gdc |
Assignee | ibuclaw@gdcproject.org |
Reporter | alex@sunopti.com |
Created attachment 88 [details]
A source file that shows the bug
I have reduced the example code as much as I can without making the bug
disappear.
If it is compiled with
gdc vector.d
I get :
f() = [1,2,3]
If it is compiled with
gdc -O vector.d
I get :
f() = [nan, nan, nan]