PR c++/78897 - constexpr union
authorJason Merrill <jason@redhat.com>
Fri, 10 Feb 2017 18:50:30 +0000 (13:50 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 10 Feb 2017 18:50:30 +0000 (13:50 -0500)
commit5c97093ba7feef2235c45233a2a1175c8c168b4c
treeca9ee3b791d659df5e956f947849e73bb4d09560
parentf494ac0ebd96a964914b7d9cc7b208a69865f9f1
PR c++/78897 - constexpr union

* constexpr.c (cxx_eval_store_expression): A store to a union member
erases a previous store to another member.

From-SVN: r245341
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-union1.C [new file with mode: 0644]