https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69499
--- Comment #15 from kargl at gcc dot gnu.org --- Author: kargl Date: Thu Jun 20 23:39:29 2019 New Revision: 272531 URL: https://gcc.gnu.org/viewcvs?rev=272531&root=gcc&view=rev Log: 2019-06-20 Steven G. Kargl <ka...@gcc.gnu.org> Backport from mainline 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-20 Steven G. Kargl <ka...@gcc.gnu.org> Backport from mainline PR fortran/69499 * gfortran.dg/pr69499.f90: New test. * gfortran.dg/module_error_1.f90: Update dg-error string. Added: branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr69499.f90 Modified: branches/gcc-9-branch/gcc/fortran/ChangeLog branches/gcc-9-branch/gcc/fortran/match.c branches/gcc-9-branch/gcc/testsuite/ChangeLog branches/gcc-9-branch/gcc/testsuite/gfortran.dg/module_error_1.f90