Fix g++ testsuite failure caused by std::is_pod deprecation
authorJonathan Wakely <jwakely@redhat.com>
Fri, 10 Jan 2020 13:04:09 +0000 (13:04 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 17 Jan 2020 15:07:35 +0000 (15:07 +0000)
PR testsuite/93227
* g++.dg/cpp0x/std-layout1.C: Use -Wno-deprecated-declarations for
C++20, due to std::is_pod being deprecated.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/std-layout1.C

index bc24a59..f7edad9 100644 (file)
@@ -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.
index 09273c5..36ae170 100644 (file)
@@ -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