re PR fortran/71204 (ICE with -O0 in expand_expr_real_1, at expr.c:9651)
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 May 2016 18:49:24 +0000 (20:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 May 2016 18:49:24 +0000 (20:49 +0200)
commit4f028369d00f8cc3a7dc26d4401a3fa238960a54
tree0d0a9ad2263e7ef54eebff35deba59059a266ae3
parent78520f3ff1f922bb86bdaa6188b3168e68fbb908
re PR fortran/71204 (ICE with -O0 in expand_expr_real_1, at expr.c:9651)

PR fortran/71204
* frontend-passes.c (realloc_string_callback): Clear inserted_block
and changed_statement before calling create_var.

* gfortran.dg/pr71204.f90: New test.

From-SVN: r236525
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr71204.f90 [new file with mode: 0644]