<html>
    <head>
      <base href="http://bugzilla.gdcproject.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:johannespfau@gmail.com" title="Johannes Pfau <johannespfau@gmail.com>"> <span class="fn">Johannes Pfau</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Union literals as rvalues yields different values every run"
   href="http://bugzilla.gdcproject.org/show_bug.cgi?id=115">bug 115</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>johannespfau@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Union literals as rvalues yields different values every run"
   href="http://bugzilla.gdcproject.org/show_bug.cgi?id=115#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Union literals as rvalues yields different values every run"
   href="http://bugzilla.gdcproject.org/show_bug.cgi?id=115">bug 115</a>
              from <span class="vcard"><a class="email" href="mailto:johannespfau@gmail.com" title="Johannes Pfau <johannespfau@gmail.com>"> <span class="fn">Johannes Pfau</span></a>
</span></b>
        <pre>The problem starts in the frontend, optimize.c(DotVarExp::optimize).
It optimizes 'func(_f(a).i)' into 'func (a)', so it produces a call to func
with an incorrectly typed parameter.

The backend then tries to pass 'a' in floating point register leading to these
strange results.

@Iain do you think this should be fixed in the frontend or in the glue layer by
doing an explicit conversion? I also wonder why the GCC backend didn't catch
this problem, I thought it should know there's a type mismatch between the
function declaration and the actual call?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>