http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54341
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jason at gcc dot gnu.org Resolution| |FIXED --- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 14:24:13 UTC --- Author: jason Date: Mon Sep 10 14:24:07 2012 New Revision: 191145 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191145 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: branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-virtual2.C branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-virtual3.C Modified: branches/gcc-4_7-branch/gcc/cp/ChangeLog branches/gcc-4_7-branch/gcc/cp/init.c branches/gcc-4_7-branch/gcc/cp/semantics.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog --- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 14:42:22 UTC --- Fixed for 4.7.2 as well.