Hi,
This page http://clang.llvm.org/docs/MSVCCompatibility.html says clang-cl
supports C ++ exceptions, but I cannot compile code with simple try{}catch{}
error : cannot compile this throw expression yet
What am i doing wrong?
--
WBR,
Arkady Shapkin aka Dragon
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20150618/0003ad06/attachment.html>
C++ exception support with clang-cl is a work in progress. I don’t believe it
is supported at all in 3.6.1 and even in the current trunk there are a lot of
problems with it that we’re actively working on.
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Arkady Shapkin
Sent: Thursday, June 18, 2015 11:42 AM
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] Clang 3.6.1 integration with MSVC++
Hi,
This page
http://clang.llvm.org/docs/MSVCCompatibility.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__clang.llvm.org_docs_MSVCCompatibility.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=9lAPlzZdvj07d7Pfz8IH0LsMkmn5sg9I_xP1LSRV3_I&s=TM6o4AbvthSNbmyWo2FulesTVjbttmXtK9a96vGajHc&e=>
says clang-cl supports C ++ exceptions, but I cannot compile code with simple
try{}catch{}
error : cannot compile this throw expression yet
What am i doing wrong?
--
WBR,
Arkady Shapkin aka Dragon
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20150618/d6eb8a74/attachment.html>
The document actually says: "Exceptions and SEH: Partial. C++ exceptions (try / catch / throw) and structured exceptions (__try / __except / __finally) mostly work on x64." That's not exactly the same thing as saying that clang-cl supports C++ exceptions. :-) I was also a bit optimistic when I wrote it, since I thought we could solve the problems of WinEHPrepare. We should probably downgrade it back to unsupported until the new representation goes in. On Thu, Jun 18, 2015 at 11:41 AM, Arkady Shapkin <arkady.shapkin at gmail.com> wrote:> Hi, > > This page http://clang.llvm.org/docs/MSVCCompatibility.html > <https://urldefense.proofpoint.com/v2/url?u=http-3A__clang.llvm.org_docs_MSVCCompatibility.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=9lAPlzZdvj07d7Pfz8IH0LsMkmn5sg9I_xP1LSRV3_I&s=TM6o4AbvthSNbmyWo2FulesTVjbttmXtK9a96vGajHc&e=> > says clang-cl supports C ++ exceptions, but I cannot compile code with > simple try{}catch{} > error : cannot compile this throw expression yet > > What am i doing wrong? > > -- > WBR, > Arkady Shapkin aka Dragon > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150618/fe90d69a/attachment.html>
Thank you for answer.> That's not exactly the same thing as saying that clang-cl supports C++exceptions. :-) I Yes, but when I saw all "green"/"yellow" on this clang page <http://clang.llvm.org/docs/MSVCCompatibility.html>, I think that simple MSVC project should build with latest clang build for Windows (at least for x64 configuration). Just please provide somewhere information when clang is ready to compile MSVC projects. This doesn't compile with latest available clang build: #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { try { } catch (...) { } return 0; } 2015-06-18 22:59 GMT+03:00 Reid Kleckner <rnk at google.com>:> The document actually says: "Exceptions and SEH: Partial. C++ exceptions > (try / catch / throw) and structured exceptions (__try / __except / > __finally) mostly work on x64." > > That's not exactly the same thing as saying that clang-cl supports C++ > exceptions. :-) I was also a bit optimistic when I wrote it, since I > thought we could solve the problems of WinEHPrepare. We should probably > downgrade it back to unsupported until the new representation goes in. > > On Thu, Jun 18, 2015 at 11:41 AM, Arkady Shapkin <arkady.shapkin at gmail.com > > wrote: > >> Hi, >> >> This page http://clang.llvm.org/docs/MSVCCompatibility.html >> <https://urldefense.proofpoint.com/v2/url?u=http-3A__clang.llvm.org_docs_MSVCCompatibility.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=9lAPlzZdvj07d7Pfz8IH0LsMkmn5sg9I_xP1LSRV3_I&s=TM6o4AbvthSNbmyWo2FulesTVjbttmXtK9a96vGajHc&e=> >> says clang-cl supports C ++ exceptions, but I cannot compile code with >> simple try{}catch{} >> error : cannot compile this throw expression yet >> >> What am i doing wrong? >> >> -- >> WBR, >> Arkady Shapkin aka Dragon >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> >-- WBR, Arkady Shapkin aka Dragon -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150619/e9c2efdd/attachment.html>