re PR fortran/86322 (ICE in reference_record with data statement)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 10 Jan 2019 18:45:38 +0000 (18:45 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 10 Jan 2019 18:45:38 +0000 (18:45 +0000)
commitbebf94afe55f257942ca4bd378b4006f1f17a0c8
treeedc2cc445b82581019c86417e1883a4ceb9bedb5
parent8b530f81133e4dd8f9a4aa8057f7bcc54845c9ef
re PR fortran/86322 (ICE in reference_record with data statement)

2019-01-10  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/86322
* decl.c (top_var_list): Set locus of expr.
(gfc_match_data): Detect pointer on non-rightmost part-refs.

2019-01-10  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/86322
* gfortran.dg/pr86322_1.f90: New test.
* gfortran.dg/pr86322_2.f90: Ditto.
* gfortran.dg/pr86322_3.f90: Ditto.

From-SVN: r267820
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr86322_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr86322_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr86322_3.f90 [new file with mode: 0644]