This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70393] [5/6 Regression] Miscompilation: missing constructor call for static object
- From: "nathan at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Mar 2016 20:51:52 +0000
- Subject: [Bug c++/70393] [5/6 Regression] Miscompilation: missing constructor call for static object
- Auto-submitted: auto-generated
- References: <bug-70393-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70393
--- Comment #10 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Thu Mar 31 20:51:20 2016
New Revision: 234653
URL: https://gcc.gnu.org/viewcvs?rev=234653&root=gcc&view=rev
Log:
PR c++/70393
* varasm.c (output_constructor_regular_field): Flush bitfield
earlier. Assert we don't want to move backwards.
cp/
PR c++/70393
* constexpr.c (cxx_eval_store_expression): Keep CONSTRUCTOR
elements in field order.
testsuite/
PR c++/70393
* g++.dg/cpp0x/constexpr-virtual6.C: New.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-virtual6.C
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/constexpr.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/varasm.c