]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/60499 (non-reserved name in <debug/vector>)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 Mar 2014 17:16:41 +0000 (17:16 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 11 Mar 2014 17:16:41 +0000 (17:16 +0000)
PR libstdc++/60499
* include/debug/forward_list (forward_list::operator=(forward_list&&)):
Uglify name.
* include/debug/map (map::operator=(map&&)): Likewise.
* include/debug/multimap (multimap::operator=(multimap&&)): Likewise.
* include/debug/multiset (multiset::operator=(multiset&&)): Likewise.
* include/debug/set (set::operator=(set&&)): Likewise.
* include/debug/unordered_map
(unordered_map::operator=(unordered_map&&)): Likewise.
(unordered_multimap::operator=(unordered_multimap&&)): Likewise.
* include/debug/unordered_set
(unordered_set::operator=(unordered_set&&)): Likewise.
(unordered_multiset::operator=(unordered_multiset&&)): Likewise.
* include/debug/vector (vector::operator=(vector&&)): Likewise.
* testsuite/23_containers/forward_list/debug/60499.cc: New
* testsuite/23_containers/map/debug/60499.cc: New
* testsuite/23_containers/multimap/debug/60499.cc: New
* testsuite/23_containers/multiset/debug/60499.cc: New
* testsuite/23_containers/set/debug/60499.cc: New
* testsuite/23_containers/unordered_map/debug/60499.cc: New
* testsuite/23_containers/unordered_multimap/debug/60499.cc: New
* testsuite/23_containers/unordered_multiset/debug/60499.cc: New
* testsuite/23_containers/unordered_set/debug/60499.cc: New
* testsuite/23_containers/vector/debug/60499.cc: New

From-SVN: r208490

19 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/forward_list
libstdc++-v3/include/debug/map.h
libstdc++-v3/include/debug/multimap.h
libstdc++-v3/include/debug/multiset.h
libstdc++-v3/include/debug/set.h
libstdc++-v3/include/debug/unordered_map
libstdc++-v3/include/debug/unordered_set
libstdc++-v3/include/debug/vector
libstdc++-v3/testsuite/23_containers/forward_list/debug/60499.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/map/debug/60499.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/multimap/debug/60499.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/multiset/debug/60499.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/set/debug/60499.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_map/debug/60499.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_multimap/debug/60499.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_multiset/debug/60499.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/unordered_set/debug/60499.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/vector/debug/60499.cc [new file with mode: 0644]

index d079638b3400c13194ed42502a3ee101872ab759..7c92019a8afa6a81c14366de130808fae69bb8b5 100644 (file)
@@ -1,3 +1,30 @@
+2014-03-11  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR libstdc++/60499
+       * include/debug/forward_list (forward_list::operator=(forward_list&&)):
+       Uglify name.
+       * include/debug/map (map::operator=(map&&)): Likewise.
+       * include/debug/multimap (multimap::operator=(multimap&&)): Likewise.
+       * include/debug/multiset (multiset::operator=(multiset&&)): Likewise.
+       * include/debug/set (set::operator=(set&&)): Likewise.
+       * include/debug/unordered_map
+       (unordered_map::operator=(unordered_map&&)): Likewise.
+       (unordered_multimap::operator=(unordered_multimap&&)): Likewise.
+       * include/debug/unordered_set
+       (unordered_set::operator=(unordered_set&&)): Likewise.
+       (unordered_multiset::operator=(unordered_multiset&&)): Likewise.
+       * include/debug/vector (vector::operator=(vector&&)): Likewise.
+       * testsuite/23_containers/forward_list/debug/60499.cc: New
+       * testsuite/23_containers/map/debug/60499.cc: New
+       * testsuite/23_containers/multimap/debug/60499.cc: New
+       * testsuite/23_containers/multiset/debug/60499.cc: New
+       * testsuite/23_containers/set/debug/60499.cc: New
+       * testsuite/23_containers/unordered_map/debug/60499.cc: New
+       * testsuite/23_containers/unordered_multimap/debug/60499.cc: New
+       * testsuite/23_containers/unordered_multiset/debug/60499.cc: New
+       * testsuite/23_containers/unordered_set/debug/60499.cc: New
+       * testsuite/23_containers/vector/debug/60499.cc: New
+
 2014-03-05  Ed Smith-Rowland  <3dw4rd@verizon.net>
 
        * doc/xml/manual/status_cxx2014.xml: Add new items and latest papers
index f2984c9c30ccd8fe11982671cc6c9fb79362e62e..12f6d7fbe1d6f782f6e1966fc39574ba3dfaa846 100644 (file)
@@ -140,10 +140,10 @@ namespace __debug
       noexcept(_Node_alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__list);
-       bool xfer_memory = _Node_alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Node_alloc_traits::_S_propagate_on_move_assign()
            || __list.get_allocator() == this->get_allocator();
        static_cast<_Base&>(*this) = std::move(__list);
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__list);
        else
          this->_M_invalidate_all();
index bd68c996d0d2875479976567a653e97fc9440ce2..fda6ac1eee52c63969bb05673cddcef419cc80d1 100644 (file)
@@ -148,10 +148,10 @@ namespace __debug
       noexcept(_Alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__x);
-       bool xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
            || __x.get_allocator() == this->get_allocator();
        _M_base() = std::move(__x._M_base());
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__x);
        else
          this->_M_invalidate_all();
index fad80cc8ebe175c36295fb31467bc1bfa4c572c8..4c3a3eb874737c7227886b0c9526e3e39e250e85 100644 (file)
@@ -150,10 +150,10 @@ namespace __debug
       noexcept(_Alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__x);
-       bool xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
            || __x.get_allocator() == this->get_allocator();
        _M_base() = std::move(__x._M_base());
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__x);
        else
          this->_M_invalidate_all();
index bd555b3c2906eb49a2467163d730ff8fb87c8c22..ae62bf87214d1a8f9266fbe0ba1536d5958fb0a9 100644 (file)
@@ -149,10 +149,10 @@ namespace __debug
       noexcept(_Alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__x);
-       bool xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
            || __x.get_allocator() == this->get_allocator();
        _M_base() = std::move(__x._M_base());
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__x);
        else
          this->_M_invalidate_all();
index f40ecec818f71f75ace63795e237534e96d51681..c83e2afa96cc382bac954f7509ce26ce9d354f0f 100644 (file)
@@ -148,10 +148,10 @@ namespace __debug
       noexcept(_Alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__x);
-       bool xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
            || __x.get_allocator() == this->get_allocator();
        _M_base() = std::move(__x._M_base());
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__x);
        else
          this->_M_invalidate_all();
index 821bf0bfe813a226a1e3e3fe5539fcc6a2bccd0e..626beba5f469d8f3c10cf3694cd186fe7d7953f3 100644 (file)
@@ -143,10 +143,10 @@ namespace __debug
       noexcept(_Alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__x);
-       bool xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
            || __x.get_allocator() == this->get_allocator();
        _M_base() = std::move(__x._M_base());   
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__x);
        else
          this->_M_invalidate_all();
@@ -599,10 +599,10 @@ namespace __debug
       noexcept(_Alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__x);
-       bool xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
            || __x.get_allocator() == this->get_allocator();
        _M_base() = std::move(__x._M_base());
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__x);
        else
          this->_M_invalidate_all();
index 3bc3fab56107b7b988e8d2d5ce714f0d50bd6d57..a17efd0a5fe4d795463402b171453ab15fd38aab 100644 (file)
@@ -142,10 +142,10 @@ namespace __debug
       noexcept(_Alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__x);
-       bool xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
            || __x.get_allocator() == this->get_allocator();
        _M_base() = std::move(__x._M_base());
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__x);
        else
          this->_M_invalidate_all();
@@ -593,10 +593,10 @@ namespace __debug
       noexcept(_Alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__x);
-       bool xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
            || __x.get_allocator() == this->get_allocator();
        _M_base() = std::move(__x._M_base());
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__x);
        else
          this->_M_invalidate_all();
index 58d98ef5de51f7cbc12bacb9f50c0a2598db8ffb..bcca52035d32e3899eb9a518277e493f6830b2ee 100644 (file)
@@ -163,10 +163,10 @@ namespace __debug
       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
       {
        __glibcxx_check_self_move_assign(__x);
-       bool xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
+       bool __xfer_memory = _Alloc_traits::_S_propagate_on_move_assign()
            || __x.get_allocator() == this->get_allocator();
        _M_base() = std::move(__x._M_base());
-       if (xfer_memory)
+       if (__xfer_memory)
          this->_M_swap(__x);
        else
          this->_M_invalidate_all();
diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/forward_list/debug/60499.cc
new file mode 100644 (file)
index 0000000..f65ed2b
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <forward_list>
+
+std::forward_list<int> a, b = std::move(a);
diff --git a/libstdc++-v3/testsuite/23_containers/map/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/map/debug/60499.cc
new file mode 100644 (file)
index 0000000..ba868fd
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <map>
+
+std::map<int, int> a, b = std::move(a);
diff --git a/libstdc++-v3/testsuite/23_containers/multimap/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/multimap/debug/60499.cc
new file mode 100644 (file)
index 0000000..38b8bcd
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <map>
+
+std::multimap<int, int> a, b = std::move(a);
diff --git a/libstdc++-v3/testsuite/23_containers/multiset/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/multiset/debug/60499.cc
new file mode 100644 (file)
index 0000000..b0a5cde
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <set>
+
+std::multiset<int> a, b = std::move(a);
diff --git a/libstdc++-v3/testsuite/23_containers/set/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/set/debug/60499.cc
new file mode 100644 (file)
index 0000000..80f3223
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <set>
+
+std::set<int> a, b = std::move(a);
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_map/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/unordered_map/debug/60499.cc
new file mode 100644 (file)
index 0000000..7915f8e
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <unordered_map>
+
+std::unordered_map<int, int> a, b = std::move(a);
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multimap/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/unordered_multimap/debug/60499.cc
new file mode 100644 (file)
index 0000000..3a41039
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <unordered_map>
+
+std::unordered_multimap<int, int> a, b = std::move(a);
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multiset/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/unordered_multiset/debug/60499.cc
new file mode 100644 (file)
index 0000000..7f61cc7
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <unordered_set>
+
+std::unordered_multiset<int> a, b = std::move(a);
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_set/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/unordered_set/debug/60499.cc
new file mode 100644 (file)
index 0000000..a9c71a5
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <unordered_set>
+
+std::unordered_set<int> a, b = std::move(a);
diff --git a/libstdc++-v3/testsuite/23_containers/vector/debug/60499.cc b/libstdc++-v3/testsuite/23_containers/vector/debug/60499.cc
new file mode 100644 (file)
index 0000000..9ba4dfe
--- /dev/null
@@ -0,0 +1,27 @@
+// Copyright (C) 2014 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library.  This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 3, or (at your option)
+// any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING3.  If not see
+// <http://www.gnu.org/licenses/>.
+//
+// { dg-require-debug-mode "" }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
+
+// PR libstdc++/60499
+
+#define xfer_memory 1
+#include <vector>
+
+std::vector<int> a, b = std::move(a);