http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51055
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-09 12:45:25 UTC --- I also think that it is valid. However, I think there is already some bugreport about this issue. Stupid workaround: Replace allocate(character(len=i)::s) by s = repeat(' ', i)