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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>:

https://gcc.gnu.org/g:f17d31e709af9b2d488adecd6cd040dfc1f23b04

commit r14-10059-gf17d31e709af9b2d488adecd6cd040dfc1f23b04
Author: Paul Thomas <pa...@gcc.gnu.org>
Date:   Sun Apr 21 17:24:24 2024 +0100

    Fortran: Detect 'no implicit type' error in right place [PR103471]

    2024-04-21  Paul Thomas  <pa...@gcc.gnu.org>

    gcc/fortran
            PR fortran/103471
            * resolve.cc (resolve_actual_arglist): Catch variables silently
            set as untyped, resetting the flag so that gfc_resolve_expr can
            generate the no implicit type error.
            (gfc_resolve_index_1): Block index expressions of unknown type
            from being converted to default integer, avoiding the fatal
            error in trans-decl.cc.
            * symbol.cc (gfc_set_default_type): Remove '(symbol)' from the
            'no IMPLICIT type' error message.
            * trans-decl.cc (gfc_get_symbol_decl): Change fatal error locus
            to that of the symbol declaration.
            (gfc_trans_deferred_vars): Remove two trailing tabs.

    gcc/testsuite/
            PR fortran/103471
            * gfortran.dg/pr103471.f90: New test.

Reply via email to