https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81068
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |UNCONFIRMED Ever confirmed|1 |0 --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- The code is invalid (I have no idea why it doesn't throw an exception on Ubuntu). The correct end of the string is input_data + 8 not &input_data[7]