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++/54253] [C++11] constexpr constructor crashes with polymorphic base classes


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

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-06 16:24:25 UTC ---
Author: jason
Date: Thu Sep  6 16:24:10 2012
New Revision: 191033

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191033
Log:
    PR c++/54341
    PR c++/54253
    * semantics.c (sort_constexpr_mem_initializers): New.
    (build_constexpr_constructor_member_initializers): Use it.
    (cx_check_missing_mem_inits): Skip artificial fields.
    * init.c (expand_aggr_init_1): Don't zero out a class
    with no data.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-virtual2.C
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-virtual3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


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