[LLVMbugs] [Bug 18906] Clang 3.4 does not work at all on Windows.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 20 11:45:05 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18906
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rnk at google.com
Resolution|--- |WORKSFORME
--- Comment #1 from Reid Kleckner <rnk at google.com> ---
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.
http://llvm.org/bugs/show_bug.cgi?id=12477
http://llvm.org/bugs/show_bug.cgi?id=13707
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140220/a223ad01/attachment.html>
More information about the llvm-bugs
mailing list