Fix forward declaration of std::type_info for versioned-namespace
authorJonathan Wakely <jwakely@redhat.com>
Tue, 16 May 2017 13:16:34 +0000 (14:16 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 16 May 2017 13:16:34 +0000 (14:16 +0100)
PR libstdc++/80285
* include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
outside versioned namespace.

From-SVN: r248109

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr_base.h

index 039560109c55ce44a39d731c2edb8e6b0a7c22b3..8926b933fc860933ded9cb9dbb147020bbce8423 100644 (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>
index 69185794a855afdf268527a88a102d48e15e798d..b4a5edfdf43bfb4133b17ec910838b40f16c55ea 100644 (file)
 
 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