]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
regex: Remove unimplemented function definitions.
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 6 Jan 2009 17:41:02 +0000 (17:41 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 6 Jan 2009 17:41:02 +0000 (17:41 +0000)
2009-01-05  Benjamin Kosnik  <bkoz@redhat.com>

* include/tr1_impl/regex: Remove unimplemented function definitions.
* testsuite/28_regex/init-list.cc: Compile only.
* testsuite/tr1/7_regular_expressions/regex/cons/char/
c_string_extended.cc: Same.
* testsuite/tr1/7_regular_expressions/basic_regex/assign/*: Same.
* testsuite/tr1/7_regular_expressions/basic_regex/ctors/*: Same.

From-SVN: r143125

26 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1_impl/regex
libstdc++-v3/testsuite/28_regex/init-list.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/char/cstring.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/char/cstring_op.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/char/pstring.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/char/range.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/char/string.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/char/string_op.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/cstring.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/cstring_op.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/pstring.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/range.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/string.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/assign/wchar_t/string_op.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/cstring.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/default.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/pstring.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/range.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/char/string.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/cstring.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/default.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/pstring.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/range.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/basic_regex/ctors/wchar_t/string.cc
libstdc++-v3/testsuite/tr1/7_regular_expressions/regex/cons/char/c_string_extended.cc

index 59e85247b609d6ddd060058edfc7501d4baf594c..40444275d318a85d166ea05ca11ed4eedd07c366 100644 (file)
@@ -1,7 +1,17 @@
+2009-01-05  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * include/tr1_impl/regex: Remove unimplemented function definitions.
+       * testsuite/28_regex/init-list.cc: Compile only.
+       * testsuite/tr1/7_regular_expressions/regex/cons/char/
+       c_string_extended.cc: Same.
+       * testsuite/tr1/7_regular_expressions/basic_regex/assign/*: Same.
+       * testsuite/tr1/7_regular_expressions/basic_regex/ctors/*: Same.
+
 2009-01-05  Benjamin Kosnik  <bkoz@redhat.com>
 
        PR libstdc++/38384
        * crossconfig.m4: Define HAVE_FABSF for hpux crosses.
+        * configure: Regenerate.
 
 2009-01-05  Ben Elliston  <bje@au.ibm.com>
 
index c2a60a2c3ea6f4dad8400b004a03f985f7bf7951..b6a8e8df0cd804198e3e18cab8b6f012640915d8 100644 (file)
@@ -1,6 +1,6 @@
 // class template regex -*- C++ -*-
 
-// Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -535,8 +535,7 @@ namespace regex_constants
        */
       template<typename _Fwd_iter>
         string_type
-        transform_primary(_Fwd_iter __first, _Fwd_iter __last) const
-        { return string_type(); }
+        transform_primary(_Fwd_iter __first, _Fwd_iter __last) const;
 
       /**
        * @brief Gets a collation element by name.
@@ -553,8 +552,7 @@ namespace regex_constants
        */
       template<typename _Fwd_iter>
         string_type
-        lookup_collatename(_Fwd_iter __first, _Fwd_iter __last) const
-        { return string_type(); }
+        lookup_collatename(_Fwd_iter __first, _Fwd_iter __last) const;
 
       /**
        * @brief Maps one or mire characters to a named character
@@ -591,8 +589,7 @@ namespace regex_constants
        */
       template<typename _Fwd_iter>
         char_class_type
-        lookup_classname(_Fwd_iter __first, _Fwd_iter __last) const
-        { return 0; }
+        lookup_classname(_Fwd_iter __first, _Fwd_iter __last) const;
 
       /**
        * @brief Determines if @p c is a member of an identified class.
@@ -1043,8 +1040,7 @@ namespace regex_constants
        * @brief Compiles a regular expression pattern into a NFA.
        * @todo Implement this function.
        */
-      void _M_compile()
-      { }
+      void _M_compile();
 
     protected:
       flag_type    _M_flags;
@@ -1995,8 +1991,7 @@ namespace regex_constants
         _Out_iter
         format(_Out_iter __out, const string_type& __fmt,
               regex_constants::match_flag_type __flags
-              = regex_constants::format_default) const
-        { return __out; }
+              = regex_constants::format_default) const;
 
       /**
        * @todo Implement this function.
@@ -2120,8 +2115,7 @@ namespace regex_constants
                match_results<_Bi_iter, _Allocator>& __m,
                const basic_regex<_Ch_type, _Rx_traits>& __re,
                regex_constants::match_flag_type __flags
-               = regex_constants::match_default)
-    { return false; }
+               = regex_constants::match_default);
 
   /**
    * @brief Indicates if there is a match between the regular expression @p e
@@ -2262,8 +2256,7 @@ namespace regex_constants
                 match_results<_Bi_iter, _Allocator>& __m,
                 const basic_regex<_Ch_type, _Rx_traits>& __re,
                 regex_constants::match_flag_type __flags
-                = regex_constants::match_default)
-    { return false; }
+                = regex_constants::match_default);
 
   /**
    * Searches for a regular expression within a range.
@@ -2396,8 +2389,7 @@ namespace regex_constants
                  const basic_regex<_Ch_type, _Rx_traits>& __e,
                  const basic_string<_Ch_type>& __fmt,
                  regex_constants::match_flag_type __flags
-                 = regex_constants::match_default)
-    { return __out; }
+                 = regex_constants::match_default);
 
   /**
    * @doctodo
index 6852507ee0e577d90effec8d332f7ea0d112f888..c8ccbb6bb14e6ad67ea69784e49fa94f5593768f 100644 (file)
@@ -1,4 +1,7 @@
-// Copyright (C) 2008 Free Software Foundation, Inc.
+// { dg-options "-std=gnu++0x" }
+// { dg-do compile }
+
+// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -25,8 +28,6 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.
 
-// { dg-options "-std=gnu++0x" }
-
 #include <regex>
 #include <testsuite_hooks.h>
 
@@ -38,13 +39,11 @@ int test01(void)
 
   regex r = { 'a', 'b', 'c' };
   cmatch res;
-  // Enable when regex class actually implemented.
-  // VERIFY(regex_match ("abc", res, r));
+  VERIFY(regex_match ("abc", res, r));
   VERIFY(!regex_match ("ab", res, r));
 
   r = { 'd', 'e', 'f' };
-  // Enable when regex class actually implemented.
-  // VERIFY(regex_match ("def", res, r));
+  VERIFY(regex_match ("def", res, r));
   VERIFY(!regex_match ("abc", res, r));
 
   return test;
index 6594b286adcabfcd33351d93a172b5d2aed1b54f..dffab3878d596d91db9b04facfd3c709f7a1d3be 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index d8db3933b1850b8cb55c3710dfe062c6554ba2d9..7f12e2414d650415758be96a64662464242749e5 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index fd48a46623a11c270f0bbcabab8c022da298f6ac..bf17ede76b239cb43171cba46ccb559813f5dafb 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index d5bfb417a1d1d97799b0224ed85898c0c766d910..db6fe1e54c90740dce89158aacf3519e377e6553 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 57e9a6b1dfdb27bf71727d26cb7a49a7b6db9b46..3a85df46498d05de57b571c759d7feda22dad80d 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index a653fbc6f53272ecfdc82759f1fef8367e21b3f2..6f069058e5bafed9a27e9a590c9fd2c9d3620bff 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 755434044fe0efea8f7e49c55a3bf82aa73d2e03..903b0ac4a098904b55dc0ec4cb48a54d41054fb2 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index f61dbcf22d7dac856e9138ada4584b202a195cfc..62ed257aab13102bccf471f698f753020b00bbf1 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index bf3de48e94a6312d8ed24376f4eabdb50aefa2a9..2678b8e9debcf992d2efb3b2d9c9225f5a418138 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 1e97c6a5ce62298b6348a25fc594bd2b16d840ba..4c8728a4633c5b08d71a69d11bd450a7a37e8ab6 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index a5303e267eb4698b296d42f3b66c12993faa6056..e8ed33913adf2ba4deda0b7d0e78e19dc4a55c27 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 78ac26d8dfe60e37d37e4a5c8b0ceabcc62d0e91..9411a7928cbf518e5d96230eaaedcabaac862233 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index a349acd8d20fdffcbf42866c8b791c3b0d37b461..b6f2c262102d9fabd74ab8908fdc13f17b73a275 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index b499a282b7efbbef8c5cc2f781c103356b6957f5..9e8a906c7d81454a28a99af6357c7aafe43790cf 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 827c8bf6af7418779b6d126f90a76a43fb541555..db1545c12f9e6895f35906179fc890cbf646d48c 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 42c2bf39879bb5c74f5772276855e3ab3b893835..98a889572f052e1f0dc227ea006800a7dc349ab7 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 0924b1c20153441ba4e203809a4decb82d57a180..c2fb2c7d51c39b9fd4d8e0f309ef42960b56c517 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 5e8e70347c39a6b76d6f381991585cca44d4878b..6ef32e2db6822b2e00734cfd9669eab97eecfed4 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index efdd81a6e14f3cee2e37b7a45b9be9ef26e891d9..25a0f1cb8af96ef555905c493f0462b7259f15ba 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index f25dee605d814d4dc27937385c39ad2b79a04ac8..28c62651fa808437bf98380c9e174ad201ff6373 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 9ebebf2f601f766660ca83a759fc6749d1088821..ed4d5eda11c8ba0e1b7217f5eb302a77be73cb5c 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 6379fecefc453f59197bb0632b3431d9c5328595..bcedd4966da79f8b409beb1687c16c10516ed420 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do link }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
index 68e7709722d08512f27ef991a74953580eeb7a5e..2fbf5ba11e0f2b191e476de890e55b0b2b2d43c4 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-do run }
+// { dg-do compile }
 
 // 2007-03-12  Stephen M. Webb  <stephen.webb@bregmasoft.com>
 //
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the