[gcc(refs/users/marxin/heads/marxin-gcc-benchmark-branch)] Fix g++ testsuite failure caused by std::is_pod deprecation
Martin Liska
marxin@gcc.gnu.org
Mon Mar 30 10:13:24 GMT 2020
https://gcc.gnu.org/g:f1a7789d0f4780b296b66e93f598bf2b2c109f43
commit f1a7789d0f4780b296b66e93f598bf2b2c109f43
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Jan 10 13:04:09 2020 +0000
Fix g++ testsuite failure caused by std::is_pod deprecation
PR testsuite/93227
* g++.dg/cpp0x/std-layout1.C: Use -Wno-deprecated-declarations for
C++20, due to std::is_pod being deprecated.
Diff:
---
gcc/testsuite/ChangeLog | 6 ++++++
gcc/testsuite/g++.dg/cpp0x/std-layout1.C | 1 +
2 files changed, 7 insertions(+)
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bc24a592305..f7edad9a64c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2020-01-17 Jonathan Wakely <jwakely@redhat.com>
+
+ PR testsuite/93227
+ * g++.dg/cpp0x/std-layout1.C: Use -Wno-deprecated-declarations for
+ C++20, due to std::is_pod being deprecated.
+
2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
* gcc.target/aarch64/sve/acle/asm/ld1ro_f16.c: New test.
diff --git a/gcc/testsuite/g++.dg/cpp0x/std-layout1.C b/gcc/testsuite/g++.dg/cpp0x/std-layout1.C
index 09273c5f1c6..36ae170afcb 100644
--- a/gcc/testsuite/g++.dg/cpp0x/std-layout1.C
+++ b/gcc/testsuite/g++.dg/cpp0x/std-layout1.C
@@ -1,4 +1,5 @@
// { dg-do compile { target c++11 } }
+// { dg-additional-options "-Wno-deprecated-declarations" { target c++2a } }
// [basic.types]/10:
// Scalar types, standard-layout class types (Clause 9), arrays of such
More information about the Gcc-cvs
mailing list