https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465
--- Comment #37 from Jonathan Wakely <redi at gcc dot gnu.org> --- Please report a separate bug for vstring then. (Your segfaults are probably because you're using c_str() on a temporary string, so accessing the pointer after the temporary goes out of scope.)