[LLVMbugs] [Bug 10178] New: multiple typeinfo name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 23 10:39:03 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10178
Summary: multiple typeinfo name
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
pes delta-2006.08.03$ clang++ -D_REENTRANT -I./source/common -I./source/i18n
-I./source/tools/toolutil -I./source/tools/ctestfw -D'U_TOPSRCDIR="../../"'
-D'U_TOPBUILDDIR="/usr/ports/devel/icu/work/icu/source/"' -O2 -pipe
-fno-strict-aliasing -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings
-Wno-long-long -c -o uobjtest.o uobjtest.cpp && nm uobjtest.o | grep
N6icu_4613DecimalFormatE
U _ZTIN6icu_4613DecimalFormatE
U _ZTSN6icu_4613DecimalFormatE
pes delta-2006.08.03$ g++ -D_REENTRANT -I./source/common -I./source/i18n
-I./source/tools/toolutil -I./source/tools/ctestfw -D'U_TOPSRCDIR="../../"'
-D'U_TOPBUILDDIR="/usr/ports/devel/icu/work/icu/source/"' -O2 -pipe
-fno-strict-aliasing -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings
-Wno-long-long -c -o uobjtest.o uobjtest.cpp && nm uobjtest.o | grep
N6icu_4613DecimalFormatE
U _ZTIN6icu_4613DecimalFormatE
Note that with clang++ the typeinfo name is there twice. This causes problems
for typeid as in this example (derived from icu testcase):
typeid(*nf) != typeid(DecimalFormat)
where each is one instance of the _ZTSN6icu_4613DecimalFormatE.
This cannot be reproduced with a flat C++ file. The attached directory
structure must be preserved. To reproduce untar the source.tgz and invoke the
command line as in above.
--
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