From cbc6c888f94488419c4d342793a1f32fe1364284 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 9 Nov 2007 17:18:10 +0000 Subject: [PATCH] stl_deque.h (deque<>::operator=(deque&&)): Implement resolution of DR 675, call clear first. 2007-11-09 Paolo Carlini * include/bits/stl_deque.h (deque<>::operator=(deque&&)): Implement resolution of DR 675, call clear first. * include/bits/stl_list.h (list<>::operator=(list&&)): Likewise. * include/bits/stl_bvector.h (vector::operator=(vector&&)): Likewise. * include/bits/stl_vector.h (vector<>::operator=(vector&&)): Likewise. * include/bits/stl_map.h (map<>::operator=(map&&)): Likewise. * include/bits/stl_multimap.h (multimap<>::operator=(multimap&&)): Likewise. * include/bits/stl_multiset.h (multiset<>::operator=(multiset&&)): Likewise. * include/bits/stl_set.h (set<>::operator=(set&&)): Likewise. * include/debug/map.h (map<>::operator=(map&&)): Likewise. * include/debug/set.h (set<>::operator=(set&&)): Likewise. * include/debug/multimap.h (multimap<>::operator=(multimap&&)): Likewise. * include/debug/multiset.h (multiset<>::operator=(multiset&&)): Likewise. * include/debug/deque (deque<>::operator=(deque&&)): Likewise. * include/debug/list (list<>::operator=(list&&)): Likewise. * include/debug/vector (vector<>::operator=(vector&&)): Likewise. * testsuite/23_containers/multimap/moveable.cc: Adjust. * testsuite/23_containers/multiset/moveable.cc: Likewise. * testsuite/23_containers/set/moveable.cc: Likewise. * testsuite/23_containers/map/moveable.cc: Likewise. * testsuite/20_util/pair/moveable.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Adjust dg-error line numbers. * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/ constructor_2_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/ constructor_2_neg.cc: Likewise. From-SVN: r130051 --- libstdc++-v3/ChangeLog | 53 +++++++++++++++++++ libstdc++-v3/include/bits/stl_bvector.h | 4 +- libstdc++-v3/include/bits/stl_deque.h | 2 + libstdc++-v3/include/bits/stl_list.h | 2 + libstdc++-v3/include/bits/stl_map.h | 2 + libstdc++-v3/include/bits/stl_multimap.h | 2 + libstdc++-v3/include/bits/stl_multiset.h | 2 + libstdc++-v3/include/bits/stl_set.h | 2 + libstdc++-v3/include/bits/stl_vector.h | 4 +- libstdc++-v3/include/debug/deque | 2 + libstdc++-v3/include/debug/list | 2 + libstdc++-v3/include/debug/map.h | 2 + libstdc++-v3/include/debug/multimap.h | 2 + libstdc++-v3/include/debug/multiset.h | 2 + libstdc++-v3/include/debug/set.h | 2 + libstdc++-v3/include/debug/vector | 2 + .../testsuite/20_util/pair/moveable.cc | 2 +- .../deque/requirements/dr438/assign_neg.cc | 2 +- .../requirements/dr438/constructor_1_neg.cc | 2 +- .../requirements/dr438/constructor_2_neg.cc | 2 +- .../deque/requirements/dr438/insert_neg.cc | 2 +- .../list/requirements/dr438/assign_neg.cc | 2 +- .../requirements/dr438/constructor_1_neg.cc | 2 +- .../requirements/dr438/constructor_2_neg.cc | 2 +- .../list/requirements/dr438/insert_neg.cc | 2 +- .../testsuite/23_containers/map/moveable.cc | 2 +- .../23_containers/multimap/moveable.cc | 2 +- .../23_containers/multiset/moveable.cc | 2 +- .../testsuite/23_containers/set/moveable.cc | 2 +- .../vector/requirements/dr438/assign_neg.cc | 2 +- .../requirements/dr438/constructor_1_neg.cc | 2 +- .../requirements/dr438/constructor_2_neg.cc | 2 +- .../vector/requirements/dr438/insert_neg.cc | 2 +- 33 files changed, 102 insertions(+), 19 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index baea4ac38dd..c07aae4ecb7 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,56 @@ +2007-11-09 Paolo Carlini + + * include/bits/stl_deque.h (deque<>::operator=(deque&&)): Implement + resolution of DR 675, call clear first. + * include/bits/stl_list.h (list<>::operator=(list&&)): Likewise. + * include/bits/stl_bvector.h (vector::operator=(vector&&)): + Likewise. + * include/bits/stl_vector.h (vector<>::operator=(vector&&)): Likewise. + * include/bits/stl_map.h (map<>::operator=(map&&)): Likewise. + * include/bits/stl_multimap.h (multimap<>::operator=(multimap&&)): + Likewise. + * include/bits/stl_multiset.h (multiset<>::operator=(multiset&&)): + Likewise. + * include/bits/stl_set.h (set<>::operator=(set&&)): Likewise. + * include/debug/map.h (map<>::operator=(map&&)): Likewise. + * include/debug/set.h (set<>::operator=(set&&)): Likewise. + * include/debug/multimap.h (multimap<>::operator=(multimap&&)): + Likewise. + * include/debug/multiset.h (multiset<>::operator=(multiset&&)): + Likewise. + * include/debug/deque (deque<>::operator=(deque&&)): Likewise. + * include/debug/list (list<>::operator=(list&&)): Likewise. + * include/debug/vector (vector<>::operator=(vector&&)): Likewise. + * testsuite/23_containers/multimap/moveable.cc: Adjust. + * testsuite/23_containers/multiset/moveable.cc: Likewise. + * testsuite/23_containers/set/moveable.cc: Likewise. + * testsuite/23_containers/map/moveable.cc: Likewise. + * testsuite/20_util/pair/moveable.cc: Likewise. + * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: + Adjust dg-error line numbers. + * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: + Likewise. + * testsuite/23_containers/deque/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/deque/requirements/dr438/ + constructor_2_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: + Likewise. + * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: + Likewise. + * testsuite/23_containers/list/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/ + constructor_2_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: + Likewise. + * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: + Likewise. + * testsuite/23_containers/vector/requirements/dr438/ + constructor_1_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/ + constructor_2_neg.cc: Likewise. + 2007-11-09 Paolo Carlini PR libstdc++/34032 diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h index cb99b2202b5..255e00b793c 100644 --- a/libstdc++-v3/include/bits/stl_bvector.h +++ b/libstdc++-v3/include/bits/stl_bvector.h @@ -560,7 +560,9 @@ template #ifdef __GXX_EXPERIMENTAL_CXX0X__ vector& operator=(vector&& __x) - { + { + // NB: DR 675. + this->clear(); this->swap(__x); return *this; } diff --git a/libstdc++-v3/include/bits/stl_deque.h b/libstdc++-v3/include/bits/stl_deque.h index 356cff23ee3..ae01eae4dae 100644 --- a/libstdc++-v3/include/bits/stl_deque.h +++ b/libstdc++-v3/include/bits/stl_deque.h @@ -808,6 +808,8 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D) deque& operator=(deque&& __x) { + // NB: DR 675. + this->clear(); this->swap(__x); return *this; } diff --git a/libstdc++-v3/include/bits/stl_list.h b/libstdc++-v3/include/bits/stl_list.h index 4de31d814b2..41b84f357f4 100644 --- a/libstdc++-v3/include/bits/stl_list.h +++ b/libstdc++-v3/include/bits/stl_list.h @@ -582,6 +582,8 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D) list& operator=(list&& __x) { + // NB: DR 675. + this->clear(); this->swap(__x); return *this; } diff --git a/libstdc++-v3/include/bits/stl_map.h b/libstdc++-v3/include/bits/stl_map.h index bc9d13beb19..64264405cb1 100644 --- a/libstdc++-v3/include/bits/stl_map.h +++ b/libstdc++-v3/include/bits/stl_map.h @@ -255,6 +255,8 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D) map& operator=(map&& __x) { + // NB: DR 675. + this->clear(); this->swap(__x); return *this; } diff --git a/libstdc++-v3/include/bits/stl_multimap.h b/libstdc++-v3/include/bits/stl_multimap.h index a2806925c5f..76d6b4797f2 100644 --- a/libstdc++-v3/include/bits/stl_multimap.h +++ b/libstdc++-v3/include/bits/stl_multimap.h @@ -253,6 +253,8 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D) multimap& operator=(multimap&& __x) { + // NB: DR 675. + this->clear(); this->swap(__x); return *this; } diff --git a/libstdc++-v3/include/bits/stl_multiset.h b/libstdc++-v3/include/bits/stl_multiset.h index 60d4d9cded6..5c897bdcc34 100644 --- a/libstdc++-v3/include/bits/stl_multiset.h +++ b/libstdc++-v3/include/bits/stl_multiset.h @@ -225,6 +225,8 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D) multiset& operator=(multiset&& __x) { + // NB: DR 675. + this->clear(); this->swap(__x); return *this; } diff --git a/libstdc++-v3/include/bits/stl_set.h b/libstdc++-v3/include/bits/stl_set.h index d26015677d3..3eb4b26962a 100644 --- a/libstdc++-v3/include/bits/stl_set.h +++ b/libstdc++-v3/include/bits/stl_set.h @@ -232,6 +232,8 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D) set& operator=(set&& __x) { + // NB: DR 675. + this->clear(); this->swap(__x); return *this; } diff --git a/libstdc++-v3/include/bits/stl_vector.h b/libstdc++-v3/include/bits/stl_vector.h index bf2cc277ad6..0e5e6c1da66 100644 --- a/libstdc++-v3/include/bits/stl_vector.h +++ b/libstdc++-v3/include/bits/stl_vector.h @@ -325,7 +325,9 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D) */ vector& operator=(vector&& __x) - { + { + // NB: DR 675. + this->clear(); this->swap(__x); return *this; } diff --git a/libstdc++-v3/include/debug/deque b/libstdc++-v3/include/debug/deque index 6571d151b1a..8d3bf83f415 100644 --- a/libstdc++-v3/include/debug/deque +++ b/libstdc++-v3/include/debug/deque @@ -110,6 +110,8 @@ namespace __debug deque& operator=(deque&& __x) { + // NB: DR 675. + clear(); swap(__x); return *this; } diff --git a/libstdc++-v3/include/debug/list b/libstdc++-v3/include/debug/list index 717433471cb..9e78fc94c52 100644 --- a/libstdc++-v3/include/debug/list +++ b/libstdc++-v3/include/debug/list @@ -139,6 +139,8 @@ namespace __debug list& operator=(list&& __x) { + // NB: DR 675. + clear(); swap(__x); return *this; } diff --git a/libstdc++-v3/include/debug/map.h b/libstdc++-v3/include/debug/map.h index 671e1f8365e..16575644da2 100644 --- a/libstdc++-v3/include/debug/map.h +++ b/libstdc++-v3/include/debug/map.h @@ -114,6 +114,8 @@ namespace __debug map& operator=(map&& __x) { + // NB: DR 675. + clear(); swap(__x); return *this; } diff --git a/libstdc++-v3/include/debug/multimap.h b/libstdc++-v3/include/debug/multimap.h index 1dd4de81df1..72f4411685b 100644 --- a/libstdc++-v3/include/debug/multimap.h +++ b/libstdc++-v3/include/debug/multimap.h @@ -115,6 +115,8 @@ namespace __debug multimap& operator=(multimap&& __x) { + // NB: DR 675. + clear(); swap(__x); return *this; } diff --git a/libstdc++-v3/include/debug/multiset.h b/libstdc++-v3/include/debug/multiset.h index 7c58db17b5c..ffe5b51548f 100644 --- a/libstdc++-v3/include/debug/multiset.h +++ b/libstdc++-v3/include/debug/multiset.h @@ -112,6 +112,8 @@ namespace __debug multiset& operator=(multiset&& __x) { + // NB: DR 675. + clear(); swap(__x); return *this; } diff --git a/libstdc++-v3/include/debug/set.h b/libstdc++-v3/include/debug/set.h index bebc34c0083..3115610d1e1 100644 --- a/libstdc++-v3/include/debug/set.h +++ b/libstdc++-v3/include/debug/set.h @@ -112,6 +112,8 @@ namespace __debug set& operator=(set&& __x) { + // NB: DR 675. + clear(); swap(__x); return *this; } diff --git a/libstdc++-v3/include/debug/vector b/libstdc++-v3/include/debug/vector index c5e4d12e02f..8890ab996be 100644 --- a/libstdc++-v3/include/debug/vector +++ b/libstdc++-v3/include/debug/vector @@ -123,6 +123,8 @@ namespace __debug vector& operator=(vector&& __x) { + // NB: DR 675. + clear(); swap(__x); return *this; } diff --git a/libstdc++-v3/testsuite/20_util/pair/moveable.cc b/libstdc++-v3/testsuite/20_util/pair/moveable.cc index e84321040ea..cd5de4162eb 100644 --- a/libstdc++-v3/testsuite/20_util/pair/moveable.cc +++ b/libstdc++-v3/testsuite/20_util/pair/moveable.cc @@ -58,7 +58,7 @@ test2() std::pair > q = make_pair(2,w); p = std::move(q); VERIFY(p.first == 2 && q.first == 2 && - p.second.size() == 2 && q.second.size() == 1); + p.second.size() == 2 && q.second.size() == 0); std::pair > r(std::move(p)); VERIFY(r.first == 2 && p.first == 2 && r.second.size() == 2 && p.second.size() == 0); diff --git a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc index 12c510a7e32..929045f040f 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1400 } +// { dg-error "no matching" "" { target *-*-* } 1402 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc index 49c1cfde929..f133b865a7f 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1335 } +// { dg-error "no matching" "" { target *-*-* } 1337 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc index 58042e12d35..a60f922cf31 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1335 } +// { dg-error "no matching" "" { target *-*-* } 1337 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc index 2d003333e33..9b8258db5ea 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1480 } +// { dg-error "no matching" "" { target *-*-* } 1482 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc index 187b7510b4f..9655db046a8 100644 --- a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1234 } +// { dg-error "no matching" "" { target *-*-* } 1236 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc index 843cb463772..78995882955 100644 --- a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1203 } +// { dg-error "no matching" "" { target *-*-* } 1205 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc index 56a80566c90..1624cf83bca 100644 --- a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1203 } +// { dg-error "no matching" "" { target *-*-* } 1205 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc index 8c2014dc6df..fddbdacf698 100644 --- a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1203 } +// { dg-error "no matching" "" { target *-*-* } 1205 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/map/moveable.cc b/libstdc++-v3/testsuite/23_containers/map/moveable.cc index 52447083b2e..c3ab6b0a69b 100644 --- a/libstdc++-v3/testsuite/23_containers/map/moveable.cc +++ b/libstdc++-v3/testsuite/23_containers/map/moveable.cc @@ -43,7 +43,7 @@ int main() a[2]=0; b[1]=0; b = std::move(a); - VERIFY(b.find(2) != b.end() && a.find(1) != a.end()); + VERIFY(b.find(2) != b.end() && a.find(1) == a.end()); std::map c(std::move(b)); VERIFY( c.find(2) != c.end()); diff --git a/libstdc++-v3/testsuite/23_containers/multimap/moveable.cc b/libstdc++-v3/testsuite/23_containers/multimap/moveable.cc index 87796f496f3..f3921a39bb5 100644 --- a/libstdc++-v3/testsuite/23_containers/multimap/moveable.cc +++ b/libstdc++-v3/testsuite/23_containers/multimap/moveable.cc @@ -43,7 +43,7 @@ int main() a.insert(std::make_pair(2,0)); b.insert(std::make_pair(1,0)); b = std::move(a); - VERIFY(b.find(2) != b.end() && a.find(1) != a.end()); + VERIFY(b.find(2) != b.end() && a.find(1) == a.end()); std::multimap c(std::move(b)); VERIFY( c.find(2) != c.end()); diff --git a/libstdc++-v3/testsuite/23_containers/multiset/moveable.cc b/libstdc++-v3/testsuite/23_containers/multiset/moveable.cc index c3ca111804d..a326cebb157 100644 --- a/libstdc++-v3/testsuite/23_containers/multiset/moveable.cc +++ b/libstdc++-v3/testsuite/23_containers/multiset/moveable.cc @@ -43,7 +43,7 @@ int main() a.insert(2); b.insert(1); b = std::move(a); - VERIFY(b.find(2) != b.end() && a.find(1) != a.end()); + VERIFY(b.find(2) != b.end() && a.find(1) == a.end()); std::multiset c(std::move(b)); VERIFY( c.find(2) != c.end()); diff --git a/libstdc++-v3/testsuite/23_containers/set/moveable.cc b/libstdc++-v3/testsuite/23_containers/set/moveable.cc index b85ae58ba06..8bfc2d27290 100644 --- a/libstdc++-v3/testsuite/23_containers/set/moveable.cc +++ b/libstdc++-v3/testsuite/23_containers/set/moveable.cc @@ -43,7 +43,7 @@ int main() a.insert(2); b.insert(1); b = std::move(a); - VERIFY(b.find(2) != b.end() && a.find(1) != a.end()); + VERIFY(b.find(2) != b.end() && a.find(1) == a.end()); std::set c(std::move(b)); VERIFY( c.find(2) != c.end()); diff --git a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc index 6e7d587300b..beae46deb59 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 995 } +// { dg-error "no matching" "" { target *-*-* } 997 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc index 532d89aea34..47023c595ca 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 935 } +// { dg-error "no matching" "" { target *-*-* } 937 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc index 640aa798592..462058c53c6 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 935 } +// { dg-error "no matching" "" { target *-*-* } 937 } // { dg-excess-errors "" } #include diff --git a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc index 19713176566..834e10e3812 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc @@ -19,7 +19,7 @@ // USA. // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1036 } +// { dg-error "no matching" "" { target *-*-* } 1038 } // { dg-excess-errors "" } #include