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

--- Comment #4 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:9e584501f6cc5a571b5f89972a1f458394c92f58

commit r16-3099-g9e584501f6cc5a571b5f89972a1f458394c92f58
Author: Paul Thomas <pa...@gcc.gnu.org>
Date:   Sat Aug 9 11:40:09 2025 +0100

    Fortran: F2018 GENERIC statement is missing [PR121182]

    2025-08-09  Paul Thomas  <pa...@gcc.gnu.org>

    gcc/fortran
            PR fortran/121182
            * decl.cc (match_generic_stmt): New function based on original
            gfc_match_generic but feeding namespace rather than typebound
            generics.
            (match_typebound_generic): Renamed original gfc_match_generic.
            (gfc_match_generic): New function that selects between type
            bound generic and other generic statements and calls one of the
            above two functions as appropriate.
            * parse.cc (decode_specification_statement): Allow generic
            statements.
            (parse_spec): Accept a generic statement in a specification
            block.

    gcc/testsuite/
            PR fortran/121182
            * gfortran.dg/generic_stmt_1.f90: New test.
            * gfortran.dg/generic_stmt_2.f90: New test.
            * gfortran.dg/generic_stmt_3.f90: New test.
            * gfortran.dg/generic_stmt_4.f90: New test.
  • [Bug fortran/121182] F2018 GENE... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to