[LLVMbugs] [Bug 7400] New: Exception std::bad_typeid throw by typeid not caught correctly.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 17 14:14:02 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: pasi.parviainen at iki.fi
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list