<html>
    <head>
      <base href="http://bugzilla.gdcproject.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Optimizer produces faulty code"
   href="http://bugzilla.gdcproject.org/show_bug.cgi?id=125">125</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Optimizer produces faulty code
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>GDC
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>development
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>gdc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>ibuclaw@gdcproject.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ketmar@ketmar.no-ip.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=67" name="attach_67" title="sample">attachment 67</a> <a href="attachment.cgi?id=67&action=edit" title="sample">[details]</a></span>
sample

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

how to reproduce:

get jsvar.d from here: <a href="https://github.com/adamdruppe/arsd/blob/master/jsvar.d">https://github.com/adamdruppe/arsd/blob/master/jsvar.d</a>

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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>