https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123881
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > (In reply to home from comment #3) > > I am using the "old std::string" because I don't know better. Please > > provide an alternative. > > The alternative is to simply not define _GLIBCXX_USE_CXX11_ABI=0 It looks like you're using cygwin, so maybe this is the default for cygwin? In any case, I don't think the choice of old or new std::string is the problem. I think your code just has a bug. Our std::string code has been very well tested for many years and the most likely cause of dereferencing a null string _Rep pointer is just a bug in the application code. Without a proper testcase we can't do anything though.
