[LLVMbugs] [Bug 12888] New: -fno-rtti should disable typeid
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat May 19 05:22:22 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12888
Bug #: 12888
Summary: -fno-rtti should disable typeid
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mimomorin at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
It seems that, with -fno-rtti compiler option, `typeid(int)` becomes something
like `*static_cast<type_info*>(0)`. So, `typeid` is useless when compiling with
-fno-rtti.
-fno-rtti should disable typeid.
--
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