[Bug 125] New: Optimizer produces faulty code

via D.gnu d.gnu at puremagic.com
Fri May 16 07:35:26 PDT 2014


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

            Bug ID: 125
           Summary: Optimizer produces faulty code
           Product: GDC
           Version: development
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: ketmar at ketmar.no-ip.org

Created attachment 67
  --> http://bugzilla.gdcproject.org/attachment.cgi?id=67&action=edit
sample

gdc -O1 and gdc -O2 produces faulty code for Adam Ruppe's jsvar.d.

how to reproduce:

get jsvar.d from here: https://github.com/adamdruppe/arsd/blob/master/jsvar.d

comment out line 47 (version=new_std_json;)

compile attached sample with -O0 and run it. it works ok.

compile attached sample with -O1 (or -O2) and run it. it segfaults.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20140516/8b3daa64/attachment.html>


More information about the D.gnu mailing list