r158797 - in /trunk: gcc/cp/ChangeLog gcc/cp/cl...
jason@gcc.gnu.org
jason@gcc.gnu.org
Tue Apr 27 18:56:00 GMT 2010
Author: jason
Date: Tue Apr 27 18:56:13 2010
New Revision: 158797
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158797
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr42844-2.C
trunk/gcc/testsuite/g++.dg/init/pr42844.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/defaulted2.C
trunk/gcc/testsuite/g++.dg/tree-ssa/pr27549.C
trunk/gcc/testsuite/g++.old-deja/g++.mike/dyncast8.C
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/src/future.cc
trunk/libstdc++-v3/src/system_error.cc
trunk/libstdc++-v3/testsuite/util/testsuite_error.h
More information about the Gcc-cvs
mailing list