From: Jonathan Wakely Date: Mon, 22 Jun 2015 15:09:14 +0000 (+0100) Subject: re PR libstdc++/64657 (Support iterators with overloaded operator-comma) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4db6c2f585053daef2fc24a72518030a85d05e1e;p=gcc.git re PR libstdc++/64657 (Support iterators with overloaded operator-comma) PR libstdc++/64657 * include/bits/stl_uninitialized.h (__uninitialized_copy::__uninit_copy): Cast expression to void. From-SVN: r224736 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 345bf945ded..290af6851ce 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-06-22 Jonathan Wakely + + PR libstdc++/64657 + * include/bits/stl_uninitialized.h + (__uninitialized_copy::__uninit_copy): Cast expression to void. + 2015-06-17 Jonathan Wakely PR libstdc++/55409 diff --git a/libstdc++-v3/include/bits/stl_uninitialized.h b/libstdc++-v3/include/bits/stl_uninitialized.h index 715cb58de5e..045bdd75a0c 100644 --- a/libstdc++-v3/include/bits/stl_uninitialized.h +++ b/libstdc++-v3/include/bits/stl_uninitialized.h @@ -71,7 +71,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _ForwardIterator __cur = __result; __try { - for (; __first != __last; ++__first, ++__cur) + for (; __first != __last; ++__first, (void)++__cur) std::_Construct(std::__addressof(*__cur), *__first); return __cur; }