re PR fortran/69499 ([F03] ICE-on-invalid on combining select type with wrong statement)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Wed, 19 Jun 2019 18:18:40 +0000 (18:18 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Wed, 19 Jun 2019 18:18:40 +0000 (18:18 +0000)
commitef3e6aa32043fd8a285342aa6c668b636f5f0d41
tree5d7ba6731d31e1f5649376b330e136395a152139
parentc9935123aef8eac547cdd0e8b06811fc776a6b32
re PR fortran/69499 ([F03] ICE-on-invalid on combining select type with wrong statement)

2019-06-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/69499
* match.c (gfc_match_select_type):  SELECT TYPE is an executable
statement, and cannot appear in MODULE or SUBMODULE scope.

2019-06-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/69499
* gfortran.dg/pr69499.f90: New test.
* gfortran.dg/module_error_1.f90: Update dg-error string.

From-SVN: r272482
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/module_error_1.f90
gcc/testsuite/gfortran.dg/pr69499.f90 [new file with mode: 0644]