exception_ptr.h needs the forward declaration because it's included from...
authorJeffrey Yasskin <jyasskin@google.com>
Thu, 31 Mar 2011 23:56:01 +0000 (23:56 +0000)
committerJeffrey Yasskin <jyasskin@gcc.gnu.org>
Thu, 31 Mar 2011 23:56:01 +0000 (23:56 +0000)
exception_ptr.h needs the forward declaration because it's
included from <typeinfo> before <typeinfo> defines std::type_info.

Tested:
  bootstrap + make check-c++ on x86_64.

libstdc++-v3/ChangeLog:

2011-03-31  Jeffrey Yasskin  <jyasskin@google.com>

* libsupc++/exception_ptr.h: Forward-declare std::type_info.
* libsupc++/nested_exception.h (__throw_with_nested): Remove a
redundant default argument from std::__throw_with_nested.

From-SVN: r171807

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/exception_ptr.h
libstdc++-v3/libsupc++/nested_exception.h

index 26834e5f92834c912d41fea78781a9fa80fb5c1d..ea4b6d49139eae53e5b9bc1db017552b2366d91d 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-31  Jeffrey Yasskin  <jyasskin@google.com>
+
+        * libsupc++/exception_ptr.h: Forward-declare std::type_info.
+        * libsupc++/nested_exception.h (__throw_with_nested): Remove a
+       redundant default argument from std::__throw_with_nested.
+
 2011-03-31  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR libstdc++/48382
index ef826f6bad0be17695e71e05e5674b512616e725..26117cd5d095aa9fac4638b34798312e79300082 100644 (file)
@@ -137,7 +137,7 @@ namespace std
       operator==(const exception_ptr&, const exception_ptr&) throw() 
       __attribute__ ((__pure__));
 
-      const type_info*
+      const class type_info*
       __cxa_exception_type() const throw() __attribute__ ((__pure__));
     };
 
index 6a4f04e2e07b9aec0ac0e39d797a7c49d9e679ff..d4804bbedc545bb37f3651901c863822a623e844 100644 (file)
@@ -117,7 +117,7 @@ namespace std
   // with a type that has an accessible nested_exception base.
   template<typename _Ex>
     inline void
-    __throw_with_nested(_Ex&& __ex, const nested_exception* = 0)
+    __throw_with_nested(_Ex&& __ex, const nested_exception*)
     { throw __ex; }
 
   template<typename _Ex>