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 /gcc/tree.h | |
parent | 78b41ae280b857079da43d91e81356c7afad8512 (diff) | |
download | gcc-6ad86a5b264dcf68f9eee93da90af06d15d91e4a.zip gcc-6ad86a5b264dcf68f9eee93da90af06d15d91e4a.tar.gz gcc-6ad86a5b264dcf68f9eee93da90af06d15d91e4a.tar.bz2 |
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 'gcc/tree.h')
0 files changed, 0 insertions, 0 deletions