http://llvm.org/bugs/show_bug.cgi?id=8098
Summary: uncaught exception doesn't cause expected behavior
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Hello,
I am using a snapshot of llvm+clang from yesterday, with the headers of
libstdc++-4.2, on debian testing x64. When I compile and run this code:
#include <stdexcept>
int main(){
throw std::logic_error("Hello.\nAgain?\n");
return 0;
}
with g++ I get this output:
terminate called after throwing an instance of 'std::logic_error'
what(): Hello.
Again?
with clang++ -O2 I just get a segmentation fault. Without -O2, I get "terminate
called without an active exception" before the segfault.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs