re PR libstdc++/42019 (shared_ptr can not be used with -fno-rtti)
commit70826946ea1908954914bb09e27e40139f49be59
authorJonathan Wakely <redi@gcc.gnu.org>
Fri, 20 Nov 2009 21:23:02 +0000 (20 21:23 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 20 Nov 2009 21:23:02 +0000 (20 21:23 +0000)
tree813398e999308911177ac3cbf1b11e8010773138
parentd547364305ff4ec01fa13b545028ff0d0467e995
re PR libstdc++/42019 (shared_ptr can not be used with -fno-rtti)

2009-11-20  Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/42019
* include/tr1/shared_ptr.h: Only use typeid when RTTI is enabled.
* include/bits/shared_ptr_base.h: Likewise.
* include/bits/shared_ptr.h: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/misc/42019.cc: New.
* testsuite/20_util/shared_ptr/misc/42019.cc: New.

From-SVN: r154377
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/include/tr1/shared_ptr.h
libstdc++-v3/testsuite/20_util/shared_ptr/misc/42019.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/misc/42019.cc [new file with mode: 0644]