[Bug c++/54253] [C++11] constexpr constructor crashes with polymorphic base classes
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 10 14:43:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54253
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.8.0 |4.7.2
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 14:24:15 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 #10 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 14:43:06 UTC ---
And for 4.7.2.
More information about the Gcc-bugs
mailing list