re PR c++/48930 ([C++0x] Invalid implicitly declared default c'tor)
authorJason Merrill <jason@redhat.com>
Tue, 10 May 2011 17:58:46 +0000 (13:58 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 10 May 2011 17:58:46 +0000 (13:58 -0400)
commit955524371fecf607a7eacdc838594ce44c4a9c46
treed6b97fffd003379dcbb4cc87d3424a063bd83702
parentb4359e45b9d1bdb218cac9d5bd311fedf1568d32
re PR c++/48930 ([C++0x] Invalid implicitly declared default c'tor)

PR c++/48930
* class.c (type_build_ctor_call): New.
* cp-tree.h: Declare it.
* decl.c (check_initializer): Use it instead of
TYPE_NEEDS_CONSTRUCTING.
* init.c (build_value_init, build_value_init_noctor): Likewise.
(perform_member_init, expand_aggr_init_1, build_new_1): Likewise.
(build_vec_init): Likewise.
* typeck2.c (process_init_constructor_array): Likewise.
(process_init_constructor_record): Likewise.

From-SVN: r173628
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/defaulted25.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash7.C