Skip to content

uncaught exception doesn't cause expected behavior #8470

Closed
@llvmbot

Description

@llvmbot
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions