From: Jonathan Wakely Date: Fri, 10 Jan 2020 13:04:09 +0000 (+0000) Subject: Fix g++ testsuite failure caused by std::is_pod deprecation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1a7789d0f4780b296b66e93f598bf2b2c109f43;p=gcc.git 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 --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 + + 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 * 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