diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a38b6e33703..1b2567d5b9c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2015-04-28 Stephan Bergmann + + * include/debug/vector (_Safe_vector::operator=): Add missing returns. + 2015-04-28 Jonathan Wakely PR libstdc++/60333 diff --git a/libstdc++-v3/include/debug/vector b/libstdc++-v3/include/debug/vector index 40bc6132da7..bf0a88eb01c 100644 --- a/libstdc++-v3/include/debug/vector +++ b/libstdc++-v3/include/debug/vector @@ -69,13 +69,17 @@ namespace __gnu_debug _Safe_vector& operator=(const _Safe_vector&) noexcept - { _M_update_guaranteed_capacity(); } + { + _M_update_guaranteed_capacity(); + return *this; + } _Safe_vector& operator=(_Safe_vector&& __x) noexcept { _M_update_guaranteed_capacity(); __x._M_guaranteed_capacity = 0; + return *this; } #endif