https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95689
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:e1edfe597d9157b8b9b61c4677b38730a9a59936 commit r8-10327-ge1edfe597d9157b8b9b61c4677b38730a9a59936 Author: Harald Anlauf <anl...@gmx.de> Date: Wed Jun 24 22:33: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)