https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95826
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:35a335a159216548fc77263ac5df71ff29d3f448 commit r11-1666-g35a335a159216548fc77263ac5df71ff29d3f448 Author: Harald Anlauf <anl...@gmx.de> Date: Thu Jun 25 20:32:13 2020 +0200 PR fortran/95826 - Buffer overflows with PDTs and long symbols With PDTs (parameterized derived types), name mangling results in variably long internal symbols. Use a dynamic buffer instead of a fixed-size one. gcc/fortran/ PR fortran/95826 * decl.c (gfc_match_decl_type_spec): Replace a fixed size buffer by a pointer and reallocate if necessary.