Commit 5e67acc9 by Jonathan Wakely Committed by Jonathan Wakely

re PR libstdc++/64560 (building libstdc++ with -fno-rtti fails in new cxx11-shim-facets.cc file)

	PR libstdc++/64560
	* src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
	for RTTI support.

From-SVN: r219495
parent 3ae79bfd
2015-01-12 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/64560
* src/c++11/cxx11-shim_facets.cc (locale::facet::_M_sso_shim): Check
for RTTI support.
2015-01-10 Thomas Schwinge <thomas@codesourcery.com> 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
* doc/xml/manual/parallel_mode.xml: Update for libgomp being * doc/xml/manual/parallel_mode.xml: Update for libgomp being
......
...@@ -768,9 +768,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -768,9 +768,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ {
using namespace __facet_shims; using namespace __facet_shims;
#if __cpp_rtti
// If this is already a shim just use its underlying facet. // If this is already a shim just use its underlying facet.
if (auto* p = dynamic_cast<const __shim*>(this)) if (auto* p = dynamic_cast<const __shim*>(this))
return p->_M_get(); return p->_M_get();
#endif
if (which == &numpunct<char>::id) if (which == &numpunct<char>::id)
return new numpunct_shim<char>{this}; return new numpunct_shim<char>{this};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment