PR fortran/95687 - ICE in get_unique_hashed_string, at fortran/class.c:508
authorHarald Anlauf <anlauf@gmx.de>
Sat, 20 Jun 2020 14:11:48 +0000 (16:11 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 20 Jun 2020 14:11:48 +0000 (16:11 +0200)
commitac932bfcd21e9523fa2b880ae8138aef79da7f54
tree86f87ceec028505517b4ae6b621a4e89aba71fdb
parent62c0c0ea7bfb6f8f6b8d767b05120cafb6823da6
PR fortran/95687 - ICE in get_unique_hashed_string, at fortran/class.c:508

With submodules and PDTs, name mangling of interfaces may result in long
internal symbols overflowing a previously static internal buffer.  We now
set the buffer size dynamically.

gcc/fortran/
PR fortran/95687
* class.c (get_unique_type_string): Return a string with dynamic
length.
(get_unique_hashed_string, gfc_hash_value): Use dynamic result
from get_unique_type_string instead of static buffer.
gcc/fortran/class.c
gcc/testsuite/gfortran.dg/pr95687.f90 [new file with mode: 0644]