re PR middle-end/71308 (ICE (segfault) in in gimple_fold_call gimple-fold.c:3060)
authorMarek Polacek <polacek@redhat.com>
Fri, 27 May 2016 12:08:03 +0000 (12:08 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 27 May 2016 12:08:03 +0000 (12:08 +0000)
commit3cee7e4e2badde2374fc77bb8f3a072e1698d1fe
treec24dc36f07c388a6b4104094fe4e3af8ce613c44
parent3168e073cbed6698c035fd16abd2fc8d59e4bec8
re PR middle-end/71308 (ICE (segfault) in in gimple_fold_call gimple-fold.c:3060)

PR middle-end/71308
* gimple-fold.c (gimple_fold_call): Check that LHS is not null.

* g++.dg/torture/pr71308.C: New test.

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