1 Upstream-Status: Inappropriate [Backport]
2 From 5e28e486dbc793184ca462b8b528f5eff3d4f2ef Mon Sep 17 00:00:00 2001
3 From: jyasskin <jyasskin@138bc75d-0d04-0410-961f-82ee72b054a4>
4 Date: Fri, 1 Apr 2011 01:07:46 +0000
5 Subject: [PATCH 053/200] Merge r171807 from trunk to the 4.6 release branch, to fix two C++
6 conformance problems in libsupc++.
8 Tested: bootstrap + make check-c++ on x86_64
10 libstdc++-v3/ChangeLog:
12 2011-03-31 Jeffrey Yasskin <jyasskin@google.com>
14 * libsupc++/exception_ptr.h: Forward-declare std::type_info.
15 * libsupc++/nested_exception.h (__throw_with_nested): Remove a
16 redundant default argument from std::__throw_with_nested.
20 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171815 138bc75d-0d04-0410-961f-82ee72b054a4
22 index ef826f6..26117cd 100644
23 --- a/libstdc++-v3/libsupc++/exception_ptr.h
24 +++ b/libstdc++-v3/libsupc++/exception_ptr.h
25 @@ -137,7 +137,7 @@ namespace std
26 operator==(const exception_ptr&, const exception_ptr&) throw()
27 __attribute__ ((__pure__));
30 + const class type_info*
31 __cxa_exception_type() const throw() __attribute__ ((__pure__));
34 diff --git a/libstdc++-v3/libsupc++/nested_exception.h b/libstdc++-v3/libsupc++/nested_exception.h
35 index 6a4f04e..d4804bb 100644
36 --- a/libstdc++-v3/libsupc++/nested_exception.h
37 +++ b/libstdc++-v3/libsupc++/nested_exception.h
38 @@ -117,7 +117,7 @@ namespace std
39 // with a type that has an accessible nested_exception base.
40 template<typename _Ex>
42 - __throw_with_nested(_Ex&& __ex, const nested_exception* = 0)
43 + __throw_with_nested(_Ex&& __ex, const nested_exception*)
46 template<typename _Ex>