]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Implement N3644 for _GLIBCXX_DEBUG iterators
authorFrançois Dumont <fdumont@gcc.gnu.org>
Thu, 14 Jan 2021 21:41:23 +0000 (22:41 +0100)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Thu, 14 Jan 2021 21:43:26 +0000 (22:43 +0100)
libstdc++-v3/ChangeLog:

* testsuite/23_containers/deque/debug/98466.cc: Make it pre-C++11
compliant.

libstdc++-v3/testsuite/23_containers/deque/debug/98466.cc

index 720977e56222c2a4111977c7e2e04b58ba3e62b0..c2d7933747ed575565e084f7358b7d7458dd37d8 100644 (file)
@@ -15,7 +15,7 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do run { target c++11 } }
+// { dg-do run }
 
 #include <debug/deque>
 #include <testsuite_hooks.h>
 
 void test01()
 {
-  __gnu_debug::deque<int>::iterator it{};
+  typedef typename __gnu_debug::deque<int>::iterator It;
+  It it = It();
   VERIFY( it == it );
 
-  __gnu_debug::deque<int>::const_iterator cit{};
+  typedef typename __gnu_debug::deque<int>::const_iterator Cit;
+  Cit cit = Cit();
   VERIFY( cit == cit );
 }
 
This page took 0.061682 seconds and 5 git commands to generate.