functions.h (__foreign_iterator_aux4): Initialize __l and __ge.
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 2 Aug 2013 07:53:01 +0000 (07:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 2 Aug 2013 07:53:01 +0000 (07:53 +0000)
2013-08-02  Paolo Carlini  <paolo.carlini@oracle.com>

* include/debug/functions.h (__foreign_iterator_aux4):
Initialize __l and __ge.

From-SVN: r201426

libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/functions.h

index 4ec4343..8c82095 100644 (file)
@@ -1,5 +1,10 @@
 2013-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
 
+       * include/debug/functions.h (__foreign_iterator_aux4):
+       Initialize __l and __ge.
+
+2013-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
+
        PR libstdc++/58049
        * include/debug/functions.h: Include <bits/move.h>; minor formatting
        changes.
index 463353e..08a6be4 100644 (file)
@@ -183,8 +183,8 @@ namespace __gnu_debug
     {
       typedef typename std::common_type<_PointerType1,
                                        _PointerType2>::type _PointerType;
-      constexpr std::less<_PointerType> __l;
-      constexpr std::greater_equal<_PointerType> __ge;
+      constexpr std::less<_PointerType> __l = {};
+      constexpr std::greater_equal<_PointerType> __ge = {};
 
       return (__l(std::addressof(*__other),
                  std::addressof(*(__it._M_get_sequence()->_M_base().begin())))