A couple of tests fail because an unqualified size_t is used.
2014-09-15  Joern Rennecke  <joern.renne...@embecosm.com>

        * libstdc++-v3/testsuite/util/io/prog_bar.cc: Qualify size_t.
        * libstdc++-v3/testsuite/util/io/prog_bar.hpp: Likewise.
        * libstdc++-v3/testsuite/util/io/verified_cmd_line_input.hpp: Likewise,

Index: testsuite/util/io/prog_bar.cc
===================================================================
--- testsuite/util/io/prog_bar.cc       (revision 216243)
+++ testsuite/util/io/prog_bar.cc       (working copy)
@@ -41,7 +41,7 @@
   namespace test
   {
     prog_bar::
-    prog_bar(size_t max, std::ostream& r_os, bool display/*= true*/) :
+    prog_bar(std::size_t max, std::ostream& r_os, bool display/*= true*/) :
       m_cur(0),
       m_max(max),
       m_cur_disp(0),
Index: testsuite/util/io/prog_bar.hpp
===================================================================
--- testsuite/util/io/prog_bar.hpp      (revision 216243)
+++ testsuite/util/io/prog_bar.hpp      (working copy)
@@ -57,7 +57,7 @@
       enum{num_disp = 40};
 
     public:
-      prog_bar(size_t max, std::ostream& r_os, bool display = true);
+      prog_bar(std::size_t max, std::ostream& r_os, bool display = true);
 
       void
       inc();
@@ -69,10 +69,10 @@
       operator=(const prog_bar& );
 
     private:
-      size_t m_cur;
-      const size_t m_max;
+      std::size_t m_cur;
+      const std::size_t m_max;
 
-      size_t m_cur_disp;
+      std::size_t m_cur_disp;
 
       std::ostream& m_r_os;
 
Index: testsuite/util/io/verified_cmd_line_input.hpp
===================================================================
--- testsuite/util/io/verified_cmd_line_input.hpp       (revision 216243)
+++ testsuite/util/io/verified_cmd_line_input.hpp       (working copy)
@@ -45,7 +45,7 @@
   namespace test
   {
     void
-    verify_argc(size_t given, size_t required);
+    verify_argc(std::size_t given, std::size_t required);
 
     void
     verify_prob(double prob);
@@ -56,7 +56,7 @@
     double
     get_cmd_line_prob(int argc, char* a_p_argv[], int argn);
 
-    size_t
+    std::size_t
     get_cmd_line_size(int argc, char* a_p_argv[], int argn);
 
     bool

Reply via email to