From c49cec93488e1c9ef08bdcd9905df7a64cb4821e Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Sat, 16 Mar 2013 20:01:16 +0000 Subject: [PATCH] re PR libstdc++/56468 (Clang exposes bug with unexpected forward-declaration of type_info) PR libstdc++/56468 * libsupc++/exception_ptr.h (type_info): Declare. From-SVN: r196709 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/libsupc++/exception_ptr.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8e4c99c..efca94e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2013-03-16 Jonathan Wakely + PR libstdc++/56468 + * libsupc++/exception_ptr.h (type_info): Declare. + +2013-03-16 Jonathan Wakely + PR libstdc++/56002 * include/std/mutex (lock_guard, unique_lock, lock): Define without depending on _GLIBCXX_HAS_GTHREADS. diff --git a/libstdc++-v3/libsupc++/exception_ptr.h b/libstdc++-v3/libsupc++/exception_ptr.h index 7a535f2..bbf8f85 100644 --- a/libstdc++-v3/libsupc++/exception_ptr.h +++ b/libstdc++-v3/libsupc++/exception_ptr.h @@ -44,6 +44,8 @@ extern "C++" { namespace std { + class type_info; + /** * @addtogroup exceptions * @{ @@ -141,7 +143,7 @@ namespace std operator==(const exception_ptr&, const exception_ptr&) _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__)); - const class type_info* + const class std::type_info* __cxa_exception_type() const _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__)); }; -- 2.7.4