https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50892
Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu.org --- Comment #3 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- Further reduced testcase still fails. Shows that it's all about the character length, not C binding or the C_PTR derived type: program test character, pointer :: str str => g(42) contains function g(i) integer, value :: i character(len=i), pointer :: g end function end