[Bug libstdc++/64560] [5 Regression] building libstdc++ with -fno-rtti fails in new cxx11-shim-facets.cc file
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 11 15:23:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64560
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
--- a/libstdc++-v3/src/c++11/cxx11-shim_facets.cc
+++ b/libstdc++-v3/src/c++11/cxx11-shim_facets.cc
@@ -768,9 +768,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
using namespace __facet_shims;
+#if __cpp_rtti
// If this is already a shim just use its underlying facet.
if (auto* p = dynamic_cast<const __shim*>(this))
return p->_M_get();
+#endif
if (which == &numpunct<char>::id)
return new numpunct_shim<char>{this};
More information about the Gcc-bugs
mailing list