From 6ad86a5b264dcf68f9eee93da90af06d15d91e4a Mon Sep 17 00:00:00 2001 From: Fabien ChĂȘne Date: Tue, 27 Apr 2010 18:56:13 +0000 Subject: re PR c++/42844 (const variable requires initializer / no explicitly declared default constructor) PR c++/42844 * decl.c (check_for_uninitialized_const_var): Handle classes that need constructing, too. (check_initializer): Call it for classes that need constructing, too. * class.c (in_class_defaulted_default_constructor): New. * cp-tree.h: Declare it. Co-Authored-By: Jason Merrill From-SVN: r158797 --- libstdc++-v3/src/future.cc | 4 +++- libstdc++-v3/src/system_error.cc | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'libstdc++-v3/src') diff --git a/libstdc++-v3/src/future.cc b/libstdc++-v3/src/future.cc index 967012a8ca6..d9289487bab 100644 --- a/libstdc++-v3/src/future.cc +++ b/libstdc++-v3/src/future.cc @@ -1,6 +1,6 @@ // future -*- C++ -*- -// Copyright (C) 2009 Free Software Foundation, Inc. +// Copyright (C) 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -28,6 +28,8 @@ namespace { struct future_error_category : public std::error_category { + future_error_category() {} + virtual const char* name() const { return "future"; } diff --git a/libstdc++-v3/src/system_error.cc b/libstdc++-v3/src/system_error.cc index 21448018204..be6af3bced8 100644 --- a/libstdc++-v3/src/system_error.cc +++ b/libstdc++-v3/src/system_error.cc @@ -34,6 +34,8 @@ namespace struct generic_error_category : public std::error_category { + generic_error_category() {} + virtual const char* name() const { return "generic"; } @@ -49,6 +51,8 @@ namespace struct system_error_category : public std::error_category { + system_error_category() {} + virtual const char* name() const { return "system"; } -- cgit v1.2.3