2016-04-19 Paul Thomas <pault@gcc.gnu.org>
commitf9e3cbfbf26be84c4020eda3516766f4deb3c529
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2016 19:23:44 +0000 (4 19:23 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2016 19:23:44 +0000 (4 19:23 +0000)
treec25b7ef2b8fc5fc8d013468b90130d1b2405d8a7
parentcdf566879db5e9702100269a9c49226b40af65e6
2016-04-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/64933
* primary.c (gfc_match_varspec): If selector expression is
unambiguously an array, make sure that the associate name
is an array and has an array spec. Modify the original
condition for doing this to exclude character types.

2016-04-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/64933
* gfortran.dg/associate_23.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241860 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associate_23.f90 [new file with mode: 0644]