re PR tree-optimization/80171 (ICE (Segmentation fault) with optimization)
authorRichard Biener <rguenther@suse.de>
Mon, 27 Mar 2017 07:35:44 +0000 (07:35 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 27 Mar 2017 07:35:44 +0000 (07:35 +0000)
commit672d9f8eab3e81bd80098fc5b16eac116eec7658
treefa108e9fd723010fb2d03e321b4ca9fc93c720fd
parentfbede6f9c01ab4d8dd7648ab681f364c35a983ad
re PR tree-optimization/80171 (ICE (Segmentation fault) with optimization)

2017-03-27  Richard Biener  <rguenther@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.

From-SVN: r246490
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr80171.C [new file with mode: 0644]