summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/ext
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-13 18:32:42 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-13 18:32:42 +0000
commit87def691d7ccf6b9e78a81de23a4b2947ce3671a (patch)
treecb71b780b49ea920aefd6402f91037c07f8a7678 /libstdc++-v3/include/ext
parentf9f68d3567c26e5324e8f365431cf1a0b13c26ef (diff)
downloadppe42-gcc-87def691d7ccf6b9e78a81de23a4b2947ce3671a.tar.gz
ppe42-gcc-87def691d7ccf6b9e78a81de23a4b2947ce3671a.zip
2013-09-13 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/58415 * include/ext/sso_string_base.h (__sso_string_base<>:: __sso_string_base(__sso_string_base&&)): Fix thinkos about _M_length vs _M_set_length. * testsuite/ext/vstring/cons/58415-1.cc: New. * testsuite/ext/vstring/cons/58415-2.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202574 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/ext')
-rw-r--r--libstdc++-v3/include/ext/sso_string_base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/ext/sso_string_base.h b/libstdc++-v3/include/ext/sso_string_base.h
index 9e5b50e6e24..6cb4302b688 100644
--- a/libstdc++-v3/include/ext/sso_string_base.h
+++ b/libstdc++-v3/include/ext/sso_string_base.h
@@ -361,9 +361,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_M_capacity(__rcs._M_allocated_capacity);
}
- _M_length(__rcs._M_length());
- __rcs._M_length(0);
+ _M_set_length(__rcs._M_length());
__rcs._M_data(__rcs._M_local_data);
+ __rcs._M_set_length(0);
}
#endif
OpenPOWER on IntegriCloud