Commit 42362497 by Jonathan Wakely Committed by Jonathan Wakely

Fix forward declaration of std::type_info for versioned-namespace

	PR libstdc++/80285
	* include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
	outside versioned namespace.

From-SVN: r248109
parent 848bf88d
2017-05-16 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/80285
* include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
outside versioned namespace.
* configure: Regenerate.
2017-05-16 Marc Glisse <marc.glisse@inria.fr>
......
......@@ -59,6 +59,10 @@
namespace std _GLIBCXX_VISIBILITY(default)
{
#if !__cpp_rtti
class type_info;
#endif
_GLIBCXX_BEGIN_NAMESPACE_VERSION
#if _GLIBCXX_USE_DEPRECATED
......@@ -68,10 +72,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#pragma GCC diagnostic pop
#endif
#if !__cpp_rtti
class type_info;
#endif
/**
* @brief Exception possibly thrown by @c shared_ptr.
* @ingroup exceptions
......
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