OSDN Git Service

PR c++/54341
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Sep 2012 14:24:07 +0000 (14:24 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Sep 2012 14:24:07 +0000 (14:24 +0000)
commit22742287f0e75404edb621ef76a82619e2483131
treef4a22e4e41e05b312e4f841b725e91f598b554c1
parent8390b0f3bed54ac10d4dca91cb69831490c37957
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@191145 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-virtual2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-virtual3.C [new file with mode: 0644]