propagation_consistent.cc: Fix vs POD-ness of value_type.
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 21 May 2011 00:30:57 +0000 (00:30 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 21 May 2011 00:30:57 +0000 (00:30 +0000)
2011-05-20  Paolo Carlini  <paolo.carlini@oracle.com>

* testsuite/21_strings/basic_string/requirements/exception/
propagation_consistent.cc: Fix vs POD-ness of value_type.
* testsuite/21_strings/basic_string/requirements/exception/
basic.cc: Likewise.
* testsuite/ext/vstring/requirements/exception/
propagation_consistent.cc: Likewise.
* testsuite/ext/vstring/requirements/exception/basic.cc: Likewise.

From-SVN: r173992

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/requirements/exception/basic.cc
libstdc++-v3/testsuite/21_strings/basic_string/requirements/exception/propagation_consistent.cc
libstdc++-v3/testsuite/ext/vstring/requirements/exception/basic.cc
libstdc++-v3/testsuite/ext/vstring/requirements/exception/propagation_consistent.cc

index 113acf56e86a3b7c3c86aa0ee3cde75b767d0001..e9fd3ac7c3a82537511222391a84ff198fdea750 100644 (file)
@@ -1,3 +1,13 @@
+2011-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * testsuite/21_strings/basic_string/requirements/exception/
+       propagation_consistent.cc: Fix vs POD-ness of value_type.
+       * testsuite/21_strings/basic_string/requirements/exception/
+       basic.cc: Likewise.
+       * testsuite/ext/vstring/requirements/exception/
+       propagation_consistent.cc: Likewise.
+       * testsuite/ext/vstring/requirements/exception/basic.cc: Likewise.
+
 2011-05-20  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/bits/char_traits.h: Use noexcept throughout.
index 1f6b970d2bfcc44beec5a85a493bb3d1fecd72e2..987aaedf12df51d93dcdf8266d41d86a779a7621 100644 (file)
@@ -3,7 +3,7 @@
 
 // 2009-11-10  Benjamin Kosnik  <benjamin@redhat.com>
 
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009, 2010, 2011 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
@@ -26,7 +26,9 @@
 void
 value()
 {
-  typedef __gnu_cxx::throw_value_limit value_type;
+  // NB: Instantiating with __gnu_cxx::throw_value_limit would be illegal,
+  // isn't a POD type.
+  typedef char value_type;
   typedef __gnu_cxx::throw_allocator_limit<value_type> allocator_type;
   typedef std::char_traits<value_type> traits_type;
   typedef std::basic_string<value_type, traits_type, allocator_type> test_type;
index 8e27a919ce136d513a6e86a7df1af5bf769c8207..dfcda7f2fa92bd63c9285b16f2cf91e87b6617c2 100644 (file)
@@ -1,10 +1,9 @@
 // { dg-options "-std=gnu++0x" }
 // { dg-require-cstdint "" }
-// { dg-do run { xfail *-*-* } }
 
 // 2009-09-14  Benjamin Kosnik  <benjamin@redhat.com>
 
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009, 2010, 2011 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
@@ -27,7 +26,9 @@
 void
 value()
 {
-  typedef __gnu_cxx::throw_value_limit value_type;
+  // NB: Instantiating with __gnu_cxx::throw_value_limit would be illegal,
+  // isn't a POD type.
+  typedef char value_type;
   typedef __gnu_cxx::throw_allocator_limit<value_type> allocator_type;
   typedef std::char_traits<value_type> traits_type;
   typedef std::basic_string<value_type, traits_type, allocator_type> test_type;
index a0042d488265e34ce828349fb630c45231000c69..5bc6f2744c910d9a3b54b0963a49abca28919095 100644 (file)
@@ -3,7 +3,7 @@
 
 // 2009-11-10  Benjamin Kosnik  <benjamin@redhat.com>
 
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009, 2010, 2011 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
 void
 value()
 {
-#if 1
+  // NB: Instantiating with __gnu_cxx::throw_value_limit would be illegal,
+  // isn't a POD type.
   typedef char value_type;
-#else
-  // XXX
-  // __gnu_cxx::__rc_string_base<>::_Rep::_M_align’ with constructor
-  // not allowed in union
-  // typedef __gnu_cxx::throw_value_limit value_type;
-#endif
   typedef __gnu_cxx::throw_allocator_limit<value_type> allocator_type;
   typedef std::char_traits<value_type> traits_type;
 
index 09d8618ab80cc291baa924779cb1a3805871fad4..e609329ea7da97ab369ba6fb4ed3eb0a9143ff22 100644 (file)
@@ -3,7 +3,7 @@
 
 // 2009-09-14  Benjamin Kosnik  <benjamin@redhat.com>
 
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009, 2010, 2011 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
 void
 value()
 {
-#if 1
+  // NB: Instantiating with __gnu_cxx::throw_value_limit would be illegal,
+  // isn't a POD type.
   typedef char value_type;
-#else
-  // XXX
-  // __gnu_cxx::__rc_string_base<>::_Rep::_M_align’ with constructor
-  // not allowed in union
-  // typedef __gnu_cxx::throw_value_limit value_type;
-#endif
   typedef __gnu_cxx::throw_allocator_limit<value_type> allocator_type;
   typedef std::char_traits<value_type> traits_type;