Closed
Description
Bugzilla Link | 8098 |
Resolution | FIXED |
Resolved on | Aug 29, 2011 06:07 |
Version | trunk |
OS | Linux |
Blocks | llvm/llvm-bugzilla-archive#9395 |
Reporter | LLVM Bugzilla Contributor |
CC | @DougGregor,@rjmccall,@seanm |
Extended Description
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
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.