https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203
--- Comment #10 from anlauf at gcc dot gnu.org --- Author: anlauf Date: Wed Mar 6 21:06:35 2019 New Revision: 269444 URL: https://gcc.gnu.org/viewcvs?rev=269444&root=gcc&view=rev Log: 2019-03-06 Harald Anlauf <anl...@gmx.de> PR fortran/71203 * expr.c (simplify_const_ref): Avoid null pointer dereference. PR fortran/71203 * gfortran.dg/substr_8.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/substr_8.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/expr.c trunk/gcc/testsuite/ChangeLog