http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47633
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-07 16:11:58 UTC --- Why should there be the extra space at the end? Doesn't make sense. IMHO either pass len - 1 to gfc_get_character_expr or don't count '\0' in len (i.e. remove the + 1) and use len + 1 in alloca. You shouldn't use alloca btw, but XALLOCAVEC (char, len).