https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79089
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Jan 16 21:35:30 2017 New Revision: 244507 URL: https://gcc.gnu.org/viewcvs?rev=244507&root=gcc&view=rev Log: PR c/79089 * gimplify.c (gimplify_init_constructor): If want_value and object == lhs, unshare lhs to avoid invalid tree sharing. Formatting fix. * gcc.c-torture/compile/pr79089.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr79089.c Modified: trunk/gcc/ChangeLog trunk/gcc/gimplify.c trunk/gcc/testsuite/ChangeLog