https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91196 --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> --- The problem is trans-type.c's gfc_get_function_type() which handles hidden strings but not the hidden is-present status of VALUE,OPTIONAL.