re PR fortran/84385 ([F03] Reject invalid SELECT TYPE selector (allocate_with_source_...
authorJanus Weil <janus@gcc.gnu.org>
Wed, 14 Feb 2018 21:46:59 +0000 (22:46 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Wed, 14 Feb 2018 21:46:59 +0000 (22:46 +0100)
commitee3bb1b7a2f73c9ccc99b0861e8a3408d408ca2d
treed73e71b2cb9316303d25db93a31702bac268629c
parent6ae679894362865b7cb9e77a639e7e3451447f51
re PR fortran/84385 ([F03] Reject invalid SELECT TYPE selector (allocate_with_source_22.f03))

2018-02-14  Janus Weil  <janus@gcc.gnu.org>

PR fortran/84385
* match.c (gfc_match_select_type): Fix check for selector in
SELECT TYPE statement.

2018-02-14  Janus Weil  <janus@gcc.gnu.org>

PR fortran/84385
* gfortran.dg/allocate_with_source_22.f03: Fix invalid test case.
* gfortran.dg/allocate_with_source_23.f90: Ditto.
* gfortran.dg/select_type_1.f03: Extend test case.

From-SVN: r257673
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_source_22.f03
gcc/testsuite/gfortran.dg/allocate_with_source_23.f03
gcc/testsuite/gfortran.dg/select_type_1.f03