On 10/01/20 13:25 +0100, Christophe Lyon wrote:
Hi,

On Thu, 9 Jan 2020 at 22:21, Jonathan Wakely <jwak...@redhat.com> wrote:

On 09/01/20 19:57 +0000, Jonathan Wakely wrote:
>I'll commit the attached patch after more testing.

And this follow-up to fix some fallout.


I have noticed:
FAIL: g++:g++.dg/cpp0x/std-layout1.C  -std=c++2a (test for excess errors)

was that follow-up intended to fix this too?

No, I didn't touch the gcc tests.

This fixes it.

Jason, OK for trunk?



commit ffee4a19afa0f3c78378c1db9d5170d2feb156b6
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Fri Jan 10 13:04:09 2020 +0000

    Fix g++ testsuite failure caused by std::is_pod deprecation
    
            * 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/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

Reply via email to