https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69499
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 CC| |kargl at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |kargl at gcc dot gnu.org --- Comment #14 from kargl at gcc dot gnu.org --- (In reply to kargl from comment #13) > Author: kargl > Date: Wed Jun 19 18:18:40 2019 > New Revision: 272482 > > URL: https://gcc.gnu.org/viewcvs?rev=272482&root=gcc&view=rev > Log: > 2019-06-19 Steven G. Kargl <ka...@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 <ka...@gcc.gnu.org> > > PR fortran/69499 > * gfortran.dg/pr69499.f90: New test. > * gfortran.dg/module_error_1.f90: Update dg-error string. > > Added: > trunk/gcc/testsuite/gfortran.dg/pr69499.f90 > Modified: > trunk/gcc/fortran/ChangeLog > trunk/gcc/fortran/match.c > trunk/gcc/testsuite/ChangeLog > trunk/gcc/testsuite/gfortran.dg/module_error_1.f90 This fixes the code in comment #3. I have not decided yet whether to back port the patch.