PR c++/78897 - constexpr union
commitef782365c18ace0cc9851c5bb08dcd3c766f877f
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2017 18:50:30 +0000 (10 18:50 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Feb 2017 18:50:30 +0000 (10 18:50 +0000)
treeca9ee3b791d659df5e956f947849e73bb4d09560
parenteb80a58e2c05f23fc4f823267349584f9c0f8d9d
PR c++/78897 - constexpr union

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245341 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-union1.C [new file with mode: 0644]