[llvm-bugs] [Bug 38468] New: Exceptions are not caught

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 7 06:58:48 PDT 2018


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

            Bug ID: 38468
           Summary: Exceptions are not caught
           Product: libc++
           Version: 6.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: teomoroz at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Env: armv7l GNU/Linux

Steps to reproduce:
1. Create the simplest
#include <iostream>

int main(int argc, char* argv[])
{
    try
    {
        throw 1;
    }
    catch(...)
    {
        std::cout << "Exception is caught\n";
    }
}

2. Compile like this:
clang++ -stdlib=libc++

3.Run application:

Actual result:
terminating with uncaught exception of type int
Aborted


Expected result:
Exception is caught


The more details are available here:
https://stackoverflow.com/questions/51673343/clang-with-libc-exceptions

-- 
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/20180807/44d763ac/attachment-0001.html>


More information about the llvm-bugs mailing list