+2015-01-08 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/60132
+ * include/std/type_traits (has_trivial_default_constructor,
+ has_trivial_copy_constructor, has_trivial_copy_assign): Add deprecated
+ attribute.
+ * testsuite/20_util/has_trivial_copy_assign/requirements/
+ explicit_instantiation.cc: Use -Wno-deprecated.
+ * testsuite/20_util/has_trivial_copy_assign/requirements/typedefs.cc:
+ Likewise.
+ * testsuite/20_util/has_trivial_copy_assign/value.cc: Likewise.
+ * testsuite/20_util/has_trivial_copy_constructor/requirements/
+ explicit_instantiation.cc: Likewise.
+ * testsuite/20_util/has_trivial_copy_constructor/requirements/
+ typedefs.cc: Likewise.
+ * testsuite/20_util/has_trivial_copy_constructor/value.cc: Likewise.
+ * testsuite/20_util/has_trivial_default_constructor/requirements/
+ explicit_instantiation.c: Likewise.
+ * testsuite/20_util/has_trivial_default_constructor/requirements/
+ typedefs.cc: Likewise.
+ * testsuite/20_util/has_trivial_default_constructor/value.cc:
+ Likewise.
+ * testsuite/20_util/pair/requirements/dr801.cc: Replace deprecated
+ trait.
+ * testsuite/20_util/tuple/requirements/dr801.cc: Likewise.
+ * testsuite/util/testsuite_common_types.h: Likewise.
+
2015-01-08 Jonathan Wakely <jwakely@redhat.com>
* include/bits/hashtable_policy.h: Use __bool_constant.
template<typename _Tp>
struct has_trivial_default_constructor
: public integral_constant<bool, __has_trivial_constructor(_Tp)>
- { };
+ { } _GLIBCXX_DEPRECATED;
/// has_trivial_copy_constructor (temporary legacy)
template<typename _Tp>
struct has_trivial_copy_constructor
: public integral_constant<bool, __has_trivial_copy(_Tp)>
- { };
+ { } _GLIBCXX_DEPRECATED;
/// has_trivial_copy_assign (temporary legacy)
template<typename _Tp>
struct has_trivial_copy_assign
: public integral_constant<bool, __has_trivial_assign(_Tp)>
- { };
+ { } _GLIBCXX_DEPRECATED;
/// has_virtual_destructor
template<typename _Tp>
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -Wno-deprecated" }
// { dg-do compile }
// 2010-06-08 Paolo Carlini <paolo.carlini@oracle.com>
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -Wno-deprecated" }
// 2010-06-08 Paolo Carlini <paolo.carlini@oracle.com>
//
// Copyright (C) 2010-2015 Free Software Foundation, Inc.
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -Wno-deprecated" }
// { dg-do compile }
// 2010-06-08 Paolo Carlini <paolo.carlini@oracle.com>
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -Wno-deprecated" }
// { dg-do compile }
// 2007-04-30 Benjamin Kosnik <bkoz@redhat.com>
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -Wno-deprecated" }
// 2004-12-30 Paolo Carlini <pcarlini@suse.de>
//
// Copyright (C) 2004-2015 Free Software Foundation, Inc.
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -Wno-deprecated" }
// { dg-do compile }
// 2004-12-30 Paolo Carlini <pcarlini@suse.de>
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -Wno-deprecated" }
// { dg-do compile }
// 2007-04-30 Benjamin Kosnik <bkoz@redhat.com>
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -Wno-deprecated" }
// 2004-12-26 Paolo Carlini <pcarlini@suse.de>
//
// Copyright (C) 2004-2015 Free Software Foundation, Inc.
-// { dg-options "-std=gnu++11" }
+// { dg-options "-std=gnu++11 -Wno-deprecated" }
// { dg-do compile }
// 2004-12-26 Paolo Carlini <pcarlini@suse.de>
// PODType, TType, NType, SLType, LType, NLType, LTypeDerived
typedef std::pair<int, int> pair_type;
// static_assert(std::is_literal_type<pair_type>::value, "! literal");
- static_assert(std::has_trivial_copy_constructor<pair_type>::value,
+ static_assert(std::is_trivially_copy_constructible<pair_type>::value,
"! triv copy");
static_assert(std::is_trivially_destructible<pair_type>::value,
"! triv destructor");
// PODType, TType, NType, SLType, LType, NLType, LTypeDerived
typedef std::tuple<int, int> tuple_type;
// static_assert(std::is_literal_type<tuple_type>::value, "! literal");
- static_assert(std::has_trivial_copy_constructor<tuple_type>::value,
+ static_assert(std::is_trivially_copy_constructible<tuple_type>::value,
"! triv copy");
static_assert(std::is_trivially_destructible<tuple_type>::value,
"! triv destructor");
{
void __constraint()
{
- typedef std::has_trivial_default_constructor<_Tp> ctor_p;
+ typedef std::is_trivially_default_constructible<_Tp> ctor_p;
static_assert(ctor_p::value, "default constructor not trivial");
typedef std::is_trivially_destructible<_Tp> dtor_p;