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++/65085] [5 Regression] Move-assigned empty string corrupt with -D_GLIBCXX_USE_CXX11_ABI=1


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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 17 12:44:26 2015
New Revision: 220758

URL: https://gcc.gnu.org/viewcvs?rev=220758&root=gcc&view=rev
Log:
    PR libstdc++/65085
    * include/bits/basic_string.h (basic_string(basic_string&&)): Ensure
    empty string gets null-terminated.
    * testsuite/21_strings/basic_string/cons/char/65085.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/65085.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/basic_string.h


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