[llvm-bugs] [Bug 27587] Exceptions are not catched

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 2 09:49:19 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27587

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> ---
You filed this as a clang 3.7 bug. Windows exception handling improved
drastically between Clang 3.7 and Clang 3.8. I would recommend using 3.8 if you
can.

I compiled your code with /EHsc and it worked fine:

# In a 32-bit MSVC environent
$ clang-cl -m32 -EHsc -fms-compatibility-version=19 -I. main.cpp
ENV/ENV_setup.cpp JSN/JSN_load.cpp -Fet.exe && ./t.exe
we call a function in LoadJson object which throws an exception
we cannot catch exception!

# In a 64-bit MSVC environment
$ clang-cl -m64 -EHsc -fms-compatibility-version=19 -I. main.cpp
ENV/ENV_setup.cpp JSN/JSN_load.cpp -Fet.exe && ./t.exe
we call a function in LoadJson object which throws an exception
we cannot catch exception!

This prints the same thing as MSVC.

-- 
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/20160502/590f979b/attachment.html>


More information about the llvm-bugs mailing list