This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/79254] basic_string::operator= isn't exception safe


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79254

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That patch is wrong, it also needs this in the catch block to restore the
original allocator:

  _M_get_allocator() = __guard._M_alloc;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]