diff options
| author | Fabien ChĂȘne <fabien.chene@gmail.com> | 2010-04-27 18:56:13 +0000 |
|---|---|---|
| committer | Jason Merrill <jason@gcc.gnu.org> | 2010-04-27 14:56:13 -0400 |
| commit | 6ad86a5b264dcf68f9eee93da90af06d15d91e4a (patch) | |
| tree | c95fa21322f4c7608254fa16bb33ea36db219406 /libstdc++-v3/src | |
| parent | 78b41ae280b857079da43d91e81356c7afad8512 (diff) | |
| download | gcc-6ad86a5b264dcf68f9eee93da90af06d15d91e4a.tar.gz gcc-6ad86a5b264dcf68f9eee93da90af06d15d91e4a.tar.bz2 gcc-6ad86a5b264dcf68f9eee93da90af06d15d91e4a.zip | |
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 <jason@redhat.com>
From-SVN: r158797
Diffstat (limited to 'libstdc++-v3/src')
| -rw-r--r-- | libstdc++-v3/src/future.cc | 4 | ||||
| -rw-r--r-- | libstdc++-v3/src/system_error.cc | 4 |
2 files changed, 7 insertions, 1 deletions
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"; } |
