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: unassignedclangb...@nondot.org
          Reporter: teomo...@gmail.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to