This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48930] [C++0x] Invalid implicitly declared default c'tor


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48930

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-10 17:58:49 UTC ---
Author: jason
Date: Tue May 10 17:58:46 2011
New Revision: 173628

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173628
Log:
    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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/defaulted25.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/init.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/template/crash7.C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]