From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 460EB3891C00; Mon, 14 Jun 2021 13:05:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 460EB3891C00 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-1426] libstdc++: Add explicit -std=gnu++17 option to test X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: b76a529c095f076c4780df0c913cf6d2391bcbc9 X-Git-Newrev: 45fb3d45a4d4b79a00c56fa93e9e69d9d7762ca0 Message-Id: <20210614130556.460EB3891C00@sourceware.org> Date: Mon, 14 Jun 2021 13:05:56 +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: Mon, 14 Jun 2021 13:05:56 -0000 https://gcc.gnu.org/g:45fb3d45a4d4b79a00c56fa93e9e69d9d7762ca0 commit r12-1426-g45fb3d45a4d4b79a00c56fa93e9e69d9d7762ca0 Author: Jonathan Wakely Date: Mon Jun 14 13:17:40 2021 +0100 libstdc++: Add explicit -std=gnu++17 option to test This test has no -std option so when the testsuite is run with -std=gnu++20 or later, this test will use that. The recent addition of no_unique_address will cause it to FAIL, because that's a reserved word after C++17. Add an explicit option, so that this test alays uses exactly C++17. libstdc++-v3/ChangeLog: * testsuite/17_intro/headers/c++2017/all_attributes.cc: Add -std=gnu++17 option. Diff: --- libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc index 811b3fe3613..ea2c7d20ba2 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc @@ -15,6 +15,7 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=gnu++17" } // { dg-do compile { target c++17 } } // Ensure the library only uses the __name__ form for attributes.