http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54341
--- Comment #4 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