https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71704

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jun 30 17:45:21 2016
New Revision: 237888

URL: https://gcc.gnu.org/viewcvs?rev=237888&root=gcc&view=rev
Log:
        PR fortran/71704
        * parse.c (matchs, matcho): Move right before decode_omp_directive.
        If spec_only, only gfc_match the keyword and if successful, goto
        do_spec_only.
        (matchds, matchdo): Define.
        (decode_omp_directive): Add spec_only local var and set it.
        Use matchds or matchdo macros instead of matchs or matcho
        for declare target, declare simd, declare reduction and threadprivate
        directives.  Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
        directive could be matched.
        (next_statement): For ST_GET_FCN_CHARACTERISTICS restore
        gfc_current_locus from old_locus even if there is no label.

        * gfortran.dg/gomp/pr71704.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/gomp/pr71704.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/parse.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to