From: François Dumont Date: Thu, 14 Jan 2021 21:41:23 +0000 (+0100) Subject: libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02e7af1122c1aae7c4c764aaa078f72a54645c06;p=gcc.git libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators libstdc++-v3/ChangeLog: * testsuite/23_containers/deque/debug/98466.cc: Make it pre-C++11 compliant. --- diff --git a/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc b/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc index 720977e5622..c2d7933747e 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // . -// { dg-do run { target c++11 } } +// { dg-do run } #include #include @@ -24,10 +24,12 @@ void test01() { - __gnu_debug::deque::iterator it{}; + typedef typename __gnu_debug::deque::iterator It; + It it = It(); VERIFY( it == it ); - __gnu_debug::deque::const_iterator cit{}; + typedef typename __gnu_debug::deque::const_iterator Cit; + Cit cit = Cit(); VERIFY( cit == cit ); }