• tobi's avatar
    fortran/ · 39351103
    tobi authored
    PR fortran/16161
    * decl.c (gfc_match_type_spec): Rename second argument to
    'implicit_flag', reverse meaning. Don't match_char_spec if
    'implicit_flag' is set. Rename to ...
    (match_type_spec): ... this.
    (gfc_match_implicit_none, match_implicit_range): Move here
    from match.c.
    (gfc_match_implicit): Move here from match.c, try to
    match_char_len if match_implicit_range doesn't succeed for
    CHARACTER implicits. Call renamed fucntion match_type_spec.
    (gfc_match_data_decl, match_prefix): Call renamed function
    match_type_spec.
    * match.c (gfc_match_implicit_none, match_implicit_range,
    gfc_match_implicit): Move to decl.c.
    * match.h (gfc_match_implicit_none, gfc_match_implicit):
    Move protoypes to section 'decl.c'.
    (gfc_match_type_spec): Remove prototype.
    
    testsuite/
    PR fortran/16161
    * gfortran.fortran-torture/compile/implicit.f90: Add test
    for implicit character.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83907 138bc75d-0d04-0410-961f-82ee72b054a4
    39351103
match.h 5.15 KB