diff options
author | Jonathan Wakely <jwakely.gcc@gmail.com> | 2013-03-16 20:01:16 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2013-03-16 20:01:16 +0000 |
commit | c49cec93488e1c9ef08bdcd9905df7a64cb4821e (patch) | |
tree | e5535a6358aabf7739f9693753db282176234a1d | |
parent | 3442f18d26ec2224d3aeef72cba25540beaa68e8 (diff) | |
download | gcc-c49cec93488e1c9ef08bdcd9905df7a64cb4821e.zip gcc-c49cec93488e1c9ef08bdcd9905df7a64cb4821e.tar.gz gcc-c49cec93488e1c9ef08bdcd9905df7a64cb4821e.tar.bz2 |
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/exception_ptr.h | 4 |
2 files changed, 8 insertions, 1 deletions
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 <jwakely.gcc@gmail.com> + PR libstdc++/56468 + * libsupc++/exception_ptr.h (type_info): Declare. + +2013-03-16 Jonathan Wakely <jwakely.gcc@gmail.com> + 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__)); }; |