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:
parent
848bf88da8
commit
423624979a
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user