PR fortran/95689 - ICE in check_sym_interfaces, at fortran/interface.c:2015
authorHarald Anlauf <anlauf@gmx.de>
Sat, 20 Jun 2020 14:09:45 +0000 (16:09 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 20 Jun 2020 14:09:45 +0000 (16:09 +0200)
commit62c0c0ea7bfb6f8f6b8d767b05120cafb6823da6
tree228d1d590ed74bf10598009cafdd347d25a2daa3
parent5eb947601bdce59f2ff26694327ad173c51c2724
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/fortran/interface.c
gcc/testsuite/gfortran.dg/pr95689.f90 [new file with mode: 0644]