This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] use is_standard_layout
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 16 Jul 2009 17:19:41 -0700
- Subject: Re: [v3] use is_standard_layout
- References: <20090716171807.1d4cfece@mcgee.artheist.org>
... wrong patch. Here it is.
2009-07-16 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/util/testsuite_common_types.h (standard_layout): Activate.
* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Adjust
line numbers.
* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Same.
* testsuite/29_atomics/atomic/cons/assign_neg.cc: Same.
* testsuite/29_atomics/atomic/cons/copy_neg.cc: Same.
Index: testsuite/29_atomics/atomic_integral/cons/assign_neg.cc
===================================================================
--- testsuite/29_atomics/atomic_integral/cons/assign_neg.cc (revision 149727)
+++ testsuite/29_atomics/atomic_integral/cons/assign_neg.cc (working copy)
@@ -30,11 +30,11 @@
return 0;
}
-// { dg-error "used here" "" { target *-*-* } 525 }
+// { dg-error "used here" "" { target *-*-* } 521 }
// { dg-excess-errors "deleted function" }
// { dg-excess-errors "deleted function" }
// { dg-error "instantiated from" "" { target *-*-* } 29 }
-// { dg-error "instantiated from" "" { target *-*-* } 532 }
+// { dg-error "instantiated from" "" { target *-*-* } 528 }
// { dg-error "instantiated from" "" { target *-*-* } 170 }
// { dg-error "instantiated from" "" { target *-*-* } 399 }
// { dg-error "instantiated from" "" { target *-*-* } 168 }
Index: testsuite/29_atomics/atomic_integral/cons/copy_neg.cc
===================================================================
--- testsuite/29_atomics/atomic_integral/cons/copy_neg.cc (revision 149727)
+++ testsuite/29_atomics/atomic_integral/cons/copy_neg.cc (working copy)
@@ -30,11 +30,11 @@
return 0;
}
-// { dg-error "used here" "" { target *-*-* } 564 }
+// { dg-error "used here" "" { target *-*-* } 560 }
// { dg-excess-errors "deleted function" }
// { dg-excess-errors "deleted function" }
// { dg-error "instantiated from" "" { target *-*-* } 29 }
-// { dg-error "instantiated from" "" { target *-*-* } 570 }
+// { dg-error "instantiated from" "" { target *-*-* } 566 }
// { dg-error "instantiated from" "" { target *-*-* } 170 }
// { dg-error "instantiated from" "" { target *-*-* } 399 }
// { dg-error "instantiated from" "" { target *-*-* } 168 }
Index: testsuite/29_atomics/atomic/cons/assign_neg.cc
===================================================================
--- testsuite/29_atomics/atomic/cons/assign_neg.cc (revision 149727)
+++ testsuite/29_atomics/atomic/cons/assign_neg.cc (working copy)
@@ -29,7 +29,7 @@
return 0;
}
-// { dg-error "used here" "" { target *-*-* } 525 }
+// { dg-error "used here" "" { target *-*-* } 521 }
// { dg-error "deleted function" "" { target *-*-* } 239 }
// { dg-error "deleted function" "" { target *-*-* } 257 }
// { dg-error "deleted function" "" { target *-*-* } 275 }
Index: testsuite/29_atomics/atomic/cons/copy_neg.cc
===================================================================
--- testsuite/29_atomics/atomic/cons/copy_neg.cc (revision 149727)
+++ testsuite/29_atomics/atomic/cons/copy_neg.cc (working copy)
@@ -29,7 +29,7 @@
return 0;
}
-// { dg-error "used here" "" { target *-*-* } 564 }
+// { dg-error "used here" "" { target *-*-* } 560 }
// { dg-error "deleted function" "" { target *-*-* } 238 }
// { dg-error "deleted function" "" { target *-*-* } 256 }
// { dg-error "deleted function" "" { target *-*-* } 274 }
Index: testsuite/util/testsuite_common_types.h
===================================================================
--- testsuite/util/testsuite_common_types.h (revision 149727)
+++ testsuite/util/testsuite_common_types.h (working copy)
@@ -474,12 +474,8 @@
{
void __constraint()
{
- // libstdc++/37907
- // typedef std::is_standard_layout<_Tp> standard_layout_p;
- // static_assert(standard_layout_p::value, "not standard_layout");
-
- typedef std::has_virtual_destructor<_Tp> ctor_p;
- static_assert(!ctor_p::value, "has virtual destructor");
+ typedef std::is_standard_layout<_Tp> standard_layout_p;
+ static_assert(standard_layout_p::value, "not standard_layout");
}
};