https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108518
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think it is still undefined if the argument is null even if the length of 0 is supplied from my reading of the standard: If no l length modifier is present, the argument shall be a pointer to the initial element of an array of character type. If the precision is specified, no more than that many bytes are written.