re PR fortran/71203 (ICE in add_init_expr_to_sym, at fortran/decl.c:1512 and :1564)
authorHarald Anlauf <anlauf@gmx.de>
Wed, 6 Mar 2019 21:06:35 +0000 (21:06 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Wed, 6 Mar 2019 21:06:35 +0000 (21:06 +0000)
commita28a8193e57ce99f8d5ae1cbf34cd6e8f490d79e
tree323171a475fad6c48c1a4bf610f3671599d9e513
parent1c98301f2b8b5f1bd7a411b1bbb66cc5694688bf
re PR fortran/71203 (ICE in add_init_expr_to_sym, at fortran/decl.c:1512 and :1564)

2019-03-06  Harald Anlauf  <anlauf@gmx.de>

PR fortran/71203
* expr.c (simplify_const_ref): Avoid null pointer dereference.

PR fortran/71203
* gfortran.dg/substr_8.f90: New test.

From-SVN: r269444
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/substr_8.f90 [new file with mode: 0644]