re PR fortran/51338 (seg fault in gfc_dep_compare_expr with -O2)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 5 Dec 2011 20:11:44 +0000 (20:11 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 5 Dec 2011 20:11:44 +0000 (20:11 +0000)
commit671b487dc35fcde6a5f611e0714b419953c4c3ed
treec5b6e6f68359e2c8fa107517990e42bcb8657d51
parentdfa51991efb62e04c7b41d9825d0cff12061e2e4
re PR fortran/51338 (seg fault in gfc_dep_compare_expr with -O2)

2011-12-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/51338
* dependency.c (are_identical_variables):  Handle case where
end fields of substring references are NULL.

2011-12-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/51338
* gfortran.dg/assumed_charlen_substring_1.f90:  New test.

From-SVN: r182024
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/assumed_charlen_substring_1.f90 [new file with mode: 0644]