www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 198] New: Optimization makes incorrect results

Date: Sat, 5 Sep 2015 09:50:06 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

http://bugzilla.gdcproject.org/show_bug.cgi?id=198

            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
  --> http://bugzilla.gdcproject.org/attachment.cgi?id=88&action=edit
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]

-- 
You are receiving this mail because:
You are watching all bug changes.
Sep 05 2015