[Bug fortran/93473] ICE on valid with long module + submodule names

abensonca at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 27 23:07:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93473

--- Comment #2 from Andrew Benson <abensonca at gmail dot com> ---
Problem occurs in set_syms_host_assoc() where the "parent1" and "parent2"
variables have a maximum length of GFC_MAX_SYMBOL_LEN+1. This is insufficient
when the parent names are a module+submodule name concatenated with a ".". The
patch above fixes this by increasing their length to 2*GFC_MAX_SYMBOL_LEN+2.


More information about the Gcc-bugs mailing list