]> code.ossystems Code Review - openembedded-core.git/blob
bc6f4f1d3bb0ac0acff287bdb6ae8f0fa6637fac
[openembedded-core.git] /
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++.
7
8 Tested: bootstrap + make check-c++ on x86_64
9
10 libstdc++-v3/ChangeLog:
11
12 2011-03-31  Jeffrey Yasskin  <jyasskin@google.com>
13
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.
17
18
19
20 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171815 138bc75d-0d04-0410-961f-82ee72b054a4
21
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__));
28  
29 -      const type_info*
30 +      const class type_info*
31        __cxa_exception_type() const throw() __attribute__ ((__pure__));
32      };
33  
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>
41      inline void
42 -    __throw_with_nested(_Ex&& __ex, const nested_exception* = 0)
43 +    __throw_with_nested(_Ex&& __ex, const nested_exception*)
44      { throw __ex; }
45  
46    template<typename _Ex>
47 -- 
48 1.7.0.4
49