This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] stray semi-colons in libstdc++ testsuite


Although GCC accepts it without warning in all modes, it's not legal
to have a semi-colon after a namespace declaration in C++03.

Tested x86_64-linux, OK for mainline?

2007-12-09  Jonathan Wakely  <...>

        * testsuite/util/testsuite_allocator.h,
        testsuite/util/testsuite_hooks.cc,
        testsuite/util/testsuite_character.h,
        testsuite/util/testsuite_performance.h,
        testsuite/util/testsuite_rvalref.h, testsuite/util/testsuite_io.h,
        testsuite/util/testsuite_allocator.cc: Remove semi-colons after
        namespace declarations.
Index: testsuite/util/testsuite_allocator.h
===================================================================
--- testsuite/util/testsuite_allocator.h	(revision 130723)
+++ testsuite/util/testsuite_allocator.h	(working copy)
@@ -45,7 +45,7 @@
 {
   bool new_called = false;
   bool delete_called = false;
-};
+}
 
 namespace __gnu_test
 {
@@ -383,6 +383,6 @@
       
       int personality;
     };
-}; // namespace __gnu_test
+} // namespace __gnu_test
 
 #endif // _GLIBCXX_TESTSUITE_ALLOCATOR_H
Index: testsuite/util/testsuite_hooks.cc
===================================================================
--- testsuite/util/testsuite_hooks.cc	(revision 130723)
+++ testsuite/util/testsuite_hooks.cc	(working copy)
@@ -334,4 +334,4 @@
     tmp.tm_isdst = isdst;
     return tmp;
   }
-}; // namespace __gnu_test
+} // namespace __gnu_test
Index: testsuite/util/testsuite_character.h
===================================================================
--- testsuite/util/testsuite_character.h	(revision 130723)
+++ testsuite/util/testsuite_character.h	(working copy)
@@ -137,7 +137,7 @@
       inline V2
       __gnu_test::pod_uchar::char_type::to(const char_type& c)
       { return static_cast<V2>(c.value << 5); }
-}; // namespace __gnu_test
+} // namespace __gnu_test
 
 namespace std
 {
Index: testsuite/util/testsuite_performance.h
===================================================================
--- testsuite/util/testsuite_performance.h	(revision 130723)
+++ testsuite/util/testsuite_performance.h	(working copy)
@@ -258,7 +258,7 @@
     out << std::endl;
     out.close();
   }
-}; // namespace __gnu_test
+} // namespace __gnu_test
 
 #endif // _GLIBCXX_PERFORMANCE_H
 
Index: testsuite/util/testsuite_rvalref.h
===================================================================
--- testsuite/util/testsuite_rvalref.h	(revision 130723)
+++ testsuite/util/testsuite_rvalref.h	(working copy)
@@ -189,6 +189,6 @@
     rhs.val = temp;
   }
   
-}; // namespace __gnu_test
+} // namespace __gnu_test
 
 #endif // _GLIBCXX_TESTSUITE_TR1_H
Index: testsuite/util/testsuite_io.h
===================================================================
--- testsuite/util/testsuite_io.h	(revision 130723)
+++ testsuite/util/testsuite_io.h	(working copy)
@@ -321,7 +321,7 @@
 #ifdef _GLIBCXX_USE_WCHAR_T
   typedef  fail_num_put<wchar_t>  fail_num_put_wchar_t;
 #endif
-}; // namespace __gnu_test
+} // namespace __gnu_test
 
 #endif // _GLIBCXX_TESTSUITE_IO_H
 
Index: testsuite/util/testsuite_allocator.cc
===================================================================
--- testsuite/util/testsuite_allocator.cc	(revision 130723)
+++ testsuite/util/testsuite_allocator.cc	(working copy)
@@ -61,5 +61,5 @@
       }
     return ret;
   }
-}; // namespace __cxx_test
+} // namespace __cxx_test
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]