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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Paul Thomas <[email protected]>:

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

commit r16-6036-gc50c7871ccc938fb700af33879e1e8b29e1c11b6
Author: Paul Thomas <[email protected]>
Date:   Thu Dec 11 17:24:07 2025 +0000

    Fortran: Fix ICE arising from PDT class components [PR107142]

    2025-12-11  Paul Thomas  <[email protected]>

    gcc/fortran
            PR fortran/107142
            * match.cc (gfc_match_type_spec): Change original declaration
            to static match_type_spec and call from gfc_match_type_spec,
            where the gfc_current_ns is stashed and restored after call.
            (gfc_match_type_is): Before emitting the syntax error message
            check if there are any pending error messages and use them
            instead.

    gcc/testsuite
            PR fortran/107142
            * gfortran.dg/pdt_78.f03: New test.

Reply via email to