<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Clang 3.4 does not work at all on Windows."
href="http://llvm.org/bugs/show_bug.cgi?id=18906">bug 18906</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;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>rnk@google.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Clang 3.4 does not work at all on Windows."
href="http://llvm.org/bugs/show_bug.cgi?id=18906#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Clang 3.4 does not work at all on Windows."
href="http://llvm.org/bugs/show_bug.cgi?id=18906">bug 18906</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>Compatibility with the Visual C++ toolchain is new and fairly unstable.
Neither RTTI and exceptions work. You can (mostly) avoid both with /GR- and
/D_HAS_EXCEPTIONS=0, but /D_HAS_EXCEPTIONS=0 isn't officially supported by
Microsoft. Clang 3.4 will not work with MSVC 2013 headers due to some new type
traits, as you discovered. A more recent Clang will work, though.
I can get your example to work with a recent Clang and MSVC 2013 with those
options:
$ cat t.cpp
#include <iostream>
int main() {
std::cout
<< "Hello World! It truly is a wonderful day to be alive!."
<< std::endl;
return 0;
}
$ clang-cl t.cpp -GR- -D_HAS_EXCEPTIONS=0 && ./t.exe
Hello World! It truly is a wonderful day to be alive!.
We have lots of other bugs tracking more targeted issues, so I'm going to close
this in favor of those.
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [meta] Support Microsoft C++ ABI"
href="show_bug.cgi?id=12477">http://llvm.org/bugs/show_bug.cgi?id=12477</a>
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [meta] VCPP compatibility issues"
href="show_bug.cgi?id=13707">http://llvm.org/bugs/show_bug.cgi?id=13707</a></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>