aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/system_error
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-10-26 15:07:14 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-10-26 15:07:14 -0400
commit20f2653ef0f7f2d33ec3e5ce389ab72d4216ec2a (patch)
tree3a188f1a76fba7e0480a3fadf8f3fd90b1751852 /libstdc++-v3/include/std/system_error
parentf96d6fd02e10a4f266c5c459461562887cbf0c6a (diff)
downloadgcc-20f2653ef0f7f2d33ec3e5ce389ab72d4216ec2a.zip
gcc-20f2653ef0f7f2d33ec3e5ce389ab72d4216ec2a.tar.gz
gcc-20f2653ef0f7f2d33ec3e5ce389ab72d4216ec2a.tar.bz2
PR c++/38796, Core issue 906
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. From-SVN: r153565
Diffstat (limited to 'libstdc++-v3/include/std/system_error')
-rw-r--r--libstdc++-v3/include/std/system_error4
1 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/system_error b/libstdc++-v3/include/std/system_error
index 7f462a2..8647411 100644
--- a/libstdc++-v3/include/std/system_error
+++ b/libstdc++-v3/include/std/system_error
@@ -64,7 +64,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
class error_category
{
protected:
- error_category() = default;
+ error_category();
public:
virtual ~error_category() { }
@@ -100,6 +100,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
{ return this != &__other; }
};
+ inline error_category::error_category() = default;
+
// DR 890.
_GLIBCXX_CONST const error_category& system_category() throw ();
_GLIBCXX_CONST const error_category& generic_category() throw ();