From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1725) id 259FD393BC17; Tue, 18 Aug 2020 18:19:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 259FD393BC17 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597774778; bh=CQPB5VtWe8rwywTQsNMETXaRZMd0Y2EAIBIbQ7Cq3RU=; h=From:To:Subject:Date:From; b=H/eiW0Nx3k4ovC7wSxymj8Jo4U/hAvJcfXFB0xeG+TS3AH9ga9be7LM+GsW16jzAq +fO/oMawitf8HHp80leU4MI+inIDtVYHRYwg12aFCBoGR9X2VH33tRU0k9THk8uVKJ Zv41RPb6m/oz+JtDZ3o0I5xOAjnhTyiUmar7f2c4= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: William Schmidt To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/wschmidt/heads/builtins3)] libstdc++: Add -Wno-deprecated for tests that warn in C++20 X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/users/wschmidt/heads/builtins3 X-Git-Oldrev: 351f60794c116d25a78da5220f3da74b4268cb8d X-Git-Newrev: 95edead9aab7a70636f87ea041f05469dc41d9a9 Message-Id: <20200818181938.259FD393BC17@sourceware.org> Date: Tue, 18 Aug 2020 18:19:38 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 18:19:38 -0000 https://gcc.gnu.org/g:95edead9aab7a70636f87ea041f05469dc41d9a9 commit 95edead9aab7a70636f87ea041f05469dc41d9a9 Author: Jonathan Wakely Date: Fri Jul 31 17:51:00 2020 +0100 libstdc++: Add -Wno-deprecated for tests that warn in C++20 libstdc++-v3/ChangeLog: * testsuite/20_util/tuple/78939.cc: Suppress warnings about deprecation of volatile-qualified structured bindings in C++20. * testsuite/20_util/variable_templates_for_traits.cc: Likewise for deprecation of is_pod in C++20 Diff: --- libstdc++-v3/testsuite/20_util/tuple/78939.cc | 5 +++-- libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/testsuite/20_util/tuple/78939.cc b/libstdc++-v3/testsuite/20_util/tuple/78939.cc index d238f75bb8a..b2ff324b232 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/78939.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/78939.cc @@ -16,6 +16,7 @@ // . // { dg-options "-std=gnu++17" } +// { dg-additional-options "-Wno-deprecated" { target c++2a } } // { dg-do compile { target c++17 } } // PR libstdc++/78939 @@ -36,7 +37,7 @@ int test02() { A a{}; - volatile auto [i, j] = a; + volatile auto [i, j] = a; // deprecated in C++20 return i + j; } @@ -44,6 +45,6 @@ int test03() { A a{}; - const volatile auto [i, j] = a; + const volatile auto [i, j] = a; // deprecated in C++20 return i + j; } diff --git a/libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc b/libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc index 0f1625a8cb6..9c1f82b5c86 100644 --- a/libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc +++ b/libstdc++-v3/testsuite/20_util/variable_templates_for_traits.cc @@ -1,5 +1,6 @@ // { dg-options "-std=gnu++17" } -// { dg-do compile } +// { dg-additional-options "-Wno-deprecated" { target c++2a } } +// { dg-do compile { target c++17 } } // Copyright (C) 2014-2020 Free Software Foundation, Inc. // @@ -142,6 +143,7 @@ static_assert(is_standard_layout_v static_assert(!is_standard_layout_v && !is_standard_layout::value, ""); +// Deprecated in C++20 static_assert(is_pod_v && is_pod::value, ""); static_assert(!is_pod_v