]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/g++.dg/cpp0x/constexpr-virtual6.C
re PR c++/70393 (Miscompilation: missing constructor call for static object)
authorNathan Sidwell <nathan@acm.org>
Thu, 31 Mar 2016 15:30:33 +0000 (15:30 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 31 Mar 2016 15:30:33 +0000 (15:30 +0000)
commit88504f3435845976b92ee7e9d358f8e687502772
tree6129d53eb107465f19b3b61d2bbcc066a80e270f
parent95d34b9618011fea39c48544cc8937577720dcc1
re PR c++/70393 (Miscompilation: missing constructor call for static object)

PR c++/70393
* varasm.c (output_constructor_regular_field): Flush bitfield
earlier.  Assert we don't want to move backwards.

cp/
* constexpr.c (cxx_eval_store_expression): Keep CONSTRUCTOR
elements in field order.

testsuite/
* g++.dg/cpp0x/constexpr-virtual6.C: New.

From-SVN: r234636
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-virtual6.C [new file with mode: 0644]
gcc/varasm.c