https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79351
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Wed Nov 28 12:57:58 2018 New Revision: 266556 URL: https://gcc.gnu.org/viewcvs?rev=266556&root=gcc&view=rev Log: 2018-11-28 Richard Biener <rguent...@suse.de> PR tree-optimization/79351 * tree-ssa-sccvn.c (vn_reference_lookup_3): For assignments from empty CONSTRUCTORs ensure the store is at a constant position. * gcc.dg/torture/pr79351.c: New testcase. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/torture/pr79351.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree-ssa-sccvn.c