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
This commit is contained in:
Jonathan Wakely 2017-05-16 14:16:34 +01:00 committed by Jonathan Wakely
parent 848bf88da8
commit 423624979a
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,9 @@
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>

View File

@ -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