[Bug fortran/95689] [8/9/10/11 Regression] ICE in check_sym_interfaces, at fortran/interface.c:2015

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 24 20:45:37 GMT 2020


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

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

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

commit r9-8696-ge3d976ae009b873596b47961869b7cdfc41d7e67
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Jun 24 22:44:11 2020 +0200

    Revert "PR fortran/95689 - ICE in check_sym_interfaces, at
fortran/interface.c:2015"

    With submodules, name mangling of interfaces may result in long internal
    symbols overflowing an internal buffer.  We now check that we do not
    exceed the enlarged buffer size.

    gcc/fortran/
            PR fortran/95689
            * interface.c (check_sym_interfaces): Enlarge temporary buffer,
            and add check on length on mangled name to prevent overflow.

    gcc/testsuite/
            PR fortran/95689
            * gfortran.dg/pr95689.f90: New test.

            (reverts the cherry-pick from commit
62c0c0ea7bfb6f8f6b8d767b05120cafb6823da6)


More information about the Gcc-bugs mailing list