<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Clang generates wrong assembly for i686-w64-mingw32"
   href="http://llvm.org/bugs/show_bug.cgi?id=18547">18547</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang generates wrong assembly for i686-w64-mingw32
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Keywords</th>
          <td>compile-fail, miscompilation, regression
          </td>
        </tr>

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

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>vanboxem.ruben@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Depends on</th>
          <td>18546
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11893" name="attach_11893" title="Generated assembly for test code">attachment 11893</a> <a href="attachment.cgi?id=11893&action=edit" title="Generated assembly for test code">[details]</a></span>
Generated assembly for test code

This test program:

#include <iostream>

int main()
try
{
  throw 42;
}
catch(...)
{  
  std::cout << "Hello World!\n";
}

Compiled with:
clang -target i686-w64-mingw32 test.cpp -o test.dll
Generates attached test.s. What GCC 4.8.2 (dw2) generates is test_gcc.s. It
seems there is an error generated by Clang. as reports:

test.s:156: Warning: Ignoring changed section attributes for .text
test.s:156: Error: junk at end of line, first unrecognized character is `,'

This worked, at least with Clang version 3.2, and I believe 3.4 as well.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>