[Bug fortran/104572] ICE in gfc_resolve_finalizers, at fortran/resolve.cc:13646

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 22 18:25:56 GMT 2023


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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:3e791f45ded89626bc1f9f8013728f6e035801b2

commit r13-6812-g3e791f45ded89626bc1f9f8013728f6e035801b2
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Mar 22 19:20:41 2023 +0100

    Fortran: improve checking of FINAL subroutine arguments [PR104572]

    gcc/fortran/ChangeLog:

            PR fortran/104572
            * resolve.cc (gfc_resolve_finalizers): Argument of a FINAL
subroutine
            cannot be an alternate return.

    gcc/testsuite/ChangeLog:

            PR fortran/104572
            * gfortran.dg/pr104572.f90: New test.

    Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>


More information about the Gcc-bugs mailing list