[PATCH] PR fortran/91715 -- Detect invalid type-spec

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

[PATCH] PR fortran/91715 -- Detect invalid type-spec

Steve Kargl
The attach patch has been tested on x86_64-*-freebsd.
OK to commit.

The attached patch detects a possibly invalid type-spec
in a function declaration.  Prior to this patch, the
new testcase would cause an ICE.

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

        PR fortran/91715
        * decl.c (gfc_match_prefix): If matching a type-spec returns an error,
        it's an error so re-act correctly.

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

        PR fortran/91715
        * gfortran.dg/function_kinds_5.f90: Prune run-on error.
        * gfortran.dg/pr85543.f90: Ditto.
        * gfortran.dg/pr91715.f90: New test.
--
Steve

pr91715.diff (2K) Download Attachment