re PR libstdc++/65085 (Move-assigned empty string corrupt with -D_GLIBCXX_USE_CXX11_A...
authorJonathan Wakely <jwakely@redhat.com>
Tue, 17 Feb 2015 12:44:26 +0000 (12:44 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 17 Feb 2015 12:44:26 +0000 (12:44 +0000)
commitfaa7d78e412294727c4b559edbc5cb49ffd2c05e
tree5228babd1f05ec341272c7f28d635d08b639017c
parent06e6dc291cfcb3941742b36fb870a1adafcb4412
re PR libstdc++/65085 (Move-assigned empty string corrupt with -D_GLIBCXX_USE_CXX11_ABI=1)

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.

From-SVN: r220758
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/65085.cc [new file with mode: 0644]