regex: Remove unimplemented function definitions.

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
This commit is contained in:
Benjamin Kosnik 2009-01-06 17:41:02 +00:00 committed by Benjamin Kosnik
parent a1e9a5516e
commit 78b5828f3d
26 changed files with 71 additions and 70 deletions

View 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> 2009-01-05 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/38384 PR libstdc++/38384
* crossconfig.m4: Define HAVE_FABSF for hpux crosses. * crossconfig.m4: Define HAVE_FABSF for hpux crosses.
* configure: Regenerate.
2009-01-05 Ben Elliston <bje@au.ibm.com> 2009-01-05 Ben Elliston <bje@au.ibm.com>

View File

@ -1,6 +1,6 @@
// class template regex -*- C++ -*- // 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 // 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 // software; you can redistribute it and/or modify it under the
@ -535,8 +535,7 @@ namespace regex_constants
*/ */
template<typename _Fwd_iter> template<typename _Fwd_iter>
string_type string_type
transform_primary(_Fwd_iter __first, _Fwd_iter __last) const transform_primary(_Fwd_iter __first, _Fwd_iter __last) const;
{ return string_type(); }
/** /**
* @brief Gets a collation element by name. * @brief Gets a collation element by name.
@ -553,8 +552,7 @@ namespace regex_constants
*/ */
template<typename _Fwd_iter> template<typename _Fwd_iter>
string_type string_type
lookup_collatename(_Fwd_iter __first, _Fwd_iter __last) const lookup_collatename(_Fwd_iter __first, _Fwd_iter __last) const;
{ return string_type(); }
/** /**
* @brief Maps one or mire characters to a named character * @brief Maps one or mire characters to a named character
@ -591,8 +589,7 @@ namespace regex_constants
*/ */
template<typename _Fwd_iter> template<typename _Fwd_iter>
char_class_type char_class_type
lookup_classname(_Fwd_iter __first, _Fwd_iter __last) const lookup_classname(_Fwd_iter __first, _Fwd_iter __last) const;
{ return 0; }
/** /**
* @brief Determines if @p c is a member of an identified class. * @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. * @brief Compiles a regular expression pattern into a NFA.
* @todo Implement this function. * @todo Implement this function.
*/ */
void _M_compile() void _M_compile();
{ }
protected: protected:
flag_type _M_flags; flag_type _M_flags;
@ -1995,8 +1991,7 @@ namespace regex_constants
_Out_iter _Out_iter
format(_Out_iter __out, const string_type& __fmt, format(_Out_iter __out, const string_type& __fmt,
regex_constants::match_flag_type __flags regex_constants::match_flag_type __flags
= regex_constants::format_default) const = regex_constants::format_default) const;
{ return __out; }
/** /**
* @todo Implement this function. * @todo Implement this function.
@ -2120,8 +2115,7 @@ namespace regex_constants
match_results<_Bi_iter, _Allocator>& __m, match_results<_Bi_iter, _Allocator>& __m,
const basic_regex<_Ch_type, _Rx_traits>& __re, const basic_regex<_Ch_type, _Rx_traits>& __re,
regex_constants::match_flag_type __flags regex_constants::match_flag_type __flags
= regex_constants::match_default) = regex_constants::match_default);
{ return false; }
/** /**
* @brief Indicates if there is a match between the regular expression @p e * @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, match_results<_Bi_iter, _Allocator>& __m,
const basic_regex<_Ch_type, _Rx_traits>& __re, const basic_regex<_Ch_type, _Rx_traits>& __re,
regex_constants::match_flag_type __flags regex_constants::match_flag_type __flags
= regex_constants::match_default) = regex_constants::match_default);
{ return false; }
/** /**
* Searches for a regular expression within a range. * 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_regex<_Ch_type, _Rx_traits>& __e,
const basic_string<_Ch_type>& __fmt, const basic_string<_Ch_type>& __fmt,
regex_constants::match_flag_type __flags regex_constants::match_flag_type __flags
= regex_constants::match_default) = regex_constants::match_default);
{ return __out; }
/** /**
* @doctodo * @doctodo

View 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 // 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 // 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 // invalidate any other reasons why the executable file might be covered by
// the GNU General Public License. // the GNU General Public License.
// { dg-options "-std=gnu++0x" }
#include <regex> #include <regex>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
@ -38,13 +39,11 @@ int test01(void)
regex r = { 'a', 'b', 'c' }; regex r = { 'a', 'b', 'c' };
cmatch res; 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)); VERIFY(!regex_match ("ab", res, r));
r = { 'd', 'e', 'f' }; 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)); VERIFY(!regex_match ("abc", res, r));
return test; return test;

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do link } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the

View File

@ -1,8 +1,8 @@
// { dg-do run } // { dg-do compile }
// 2007-03-12 Stephen M. Webb <stephen.webb@bregmasoft.com> // 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 // 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 // software; you can redistribute it and/or modify it under the