PR fortran/95089 - ICE in gfc_get_derived_type, at fortran/trans-types.c:2843
authorHarald Anlauf <anlauf@gmx.de>
Tue, 26 May 2020 19:19:19 +0000 (21:19 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 26 May 2020 19:19:19 +0000 (21:19 +0200)
commit48d526613961f410a87855ba2fef8909e925d9fa
tree7f9e28487c8e1609f8cb723919b6403b47056ecd
parent9f0cb44e9b1da3676879b73728b31d421a8b1178
PR fortran/95089 - ICE in gfc_get_derived_type, at fortran/trans-types.c:2843

For long module name, derive type and component name, the
generated name-mangled symbol did not fit into a buffer when
coarrays were enabled.  Provide sufficiently large temporary.

2020-05-26  Harald Anlauf  <anlauf@gmx.de>

gcc/fortran/
PR fortran/95089
* trans-types.c (gfc_get_derived_type): Enlarge temporary to hold
mangled name "_caf_symbol".

gcc/testsuite/
PR fortran/95089
* gfortran.dg/pr95089.f90: New test.
gcc/fortran/trans-types.c
gcc/testsuite/gfortran.dg/pr95089.f90 [new file with mode: 0644]