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
This commit is contained in:
Jonathan Wakely 2013-03-16 20:01:16 +00:00 committed by Jonathan Wakely
parent 3442f18d26
commit c49cec9348
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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> 2013-03-16 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/56002 PR libstdc++/56002

View File

@ -44,6 +44,8 @@ extern "C++" {
namespace std namespace std
{ {
class type_info;
/** /**
* @addtogroup exceptions * @addtogroup exceptions
* @{ * @{
@ -141,7 +143,7 @@ namespace std
operator==(const exception_ptr&, const exception_ptr&) operator==(const exception_ptr&, const exception_ptr&)
_GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__)); _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
const class type_info* const class std::type_info*
__cxa_exception_type() const _GLIBCXX_USE_NOEXCEPT __cxa_exception_type() const _GLIBCXX_USE_NOEXCEPT
__attribute__ ((__pure__)); __attribute__ ((__pure__));
}; };