summaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++/nested_exception.h
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-26 19:07:14 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-26 19:07:14 +0000
commite8c9f615d3856ee3d8635e8ec92bbd2fa2cfa3a9 (patch)
tree3a188f1a76fba7e0480a3fadf8f3fd90b1751852 /libstdc++-v3/libsupc++/nested_exception.h
parent7a7cd28e1bfb950ed3d49723f8e5c98ccfe47bcf (diff)
PR c++/38796, Core issue 906
gcc/cp * cp-tree.h (DECL_DEFAULTED_OUTSIDE_CLASS_P): New. (DECL_DEFAULTED_IN_CLASS_P): New. * class.c (user_provided_p): Non-static. (check_methods): Use it. (check_bases_and_members): Check defaulted fns. (defaultable_fn_p): Move and rename to... * method.c (defaultable_fn_check): ...this. (defaulted_late_check): New. * pt.c (tsubst_decl): Call it. * decl2.c (grokfield): Adjust. * decl.c (cp_finish_decl): Adjust. (grok_special_member_properties): Use user_provided_p. libstdc++-v3 * include/std/future (~Future_result_base): Default outside class body. * include/std/system_error (error_category()): Likewise. * libsupc++/nested_exception.h (nested_exception): Remove exception specifications from defaulted methods. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153565 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++/nested_exception.h')
-rw-r--r--libstdc++-v3/libsupc++/nested_exception.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/libsupc++/nested_exception.h b/libstdc++-v3/libsupc++/nested_exception.h
index 752c595b49bf..d4e1347114b6 100644
--- a/libstdc++-v3/libsupc++/nested_exception.h
+++ b/libstdc++-v3/libsupc++/nested_exception.h
@@ -57,9 +57,9 @@ namespace std
public:
nested_exception() throw() : _M_ptr(current_exception()) { }
- nested_exception(const nested_exception&) throw() = default;
+ nested_exception(const nested_exception&) = default;
- nested_exception& operator=(const nested_exception&) throw() = default;
+ nested_exception& operator=(const nested_exception&) = default;
virtual ~nested_exception() = default;