http://llvm.org/bugs/show_bug.cgi?id=7400
Summary: Exception std::bad_typeid throw by typeid not caught
correctly.
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Exception std::bad_typeid thrown by typeid is not caught by nearest catch
block. This seems to be similar problem with CodGen as it was with dynamic_cast
throwing std::bad_cast as described in PR7059 and PR7132.
Here is results for clang and gcc for failing example:
> clang++ -v
clang version 2.0 (trunk 106103)
Target: x86_64-unknown-freebsd8.0
Thread model: posix
> clang++ bad_typeid.cpp
> ./a.out
std::bad_typeid: Failure
> g++ -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
> g++ bad_typeid.cpp
> ./a.out
std::bad_typeid: Success
--
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