[Committed] PR fortran/69499 -- SELECT TYPE is executable statement

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Committed] PR fortran/69499 -- SELECT TYPE is executable statement

Steve Kargl
I have committed the attach patch.  It checks that
a SELECT TYPE construct does not appear in MODULE
or SUBMODULE scope as it is an executable statement.


2019-06-19  Steven G. Kargl  <[hidden email]>

        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  <[hidden email]>

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

--
Steve

pr69499.diff (1K) Download Attachment