commit e14f89bd9e529b3343c0b8c5fce3377394f6cbc7
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue May 16 14:13:40 2017 +0100
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.
@@ -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