https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80171
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Mar 27 07:35:44 2017 New Revision: 246490 URL: https://gcc.gnu.org/viewcvs?rev=246490&root=gcc&view=rev Log: 2017-03-27 Richard Biener <rguent...@suse.de> PR middle-end/80171 * gimple-fold.c (fold_ctor_reference): Properly guard against NULL return value from canonicalize_constructor_val. * g++.dg/torture/pr80171.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/torture/pr80171.C Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-fold.c trunk/gcc/testsuite/ChangeLog