From eef92510cd82e5ad2811554d4e96140b30b61567 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 29 Jun 2020 20:41:55 -0400 Subject: testsuite: fix constexpr-is_literal.C deprecated c++17 and above. std::is_literal_type is deprecated in C++17 and above. This was introduced in c++11, but the testsuite list of standards now only includes c++98 and c++14. This patch limits the test to c++14_only to prevent deprecation warnings. gcc/testsuite/ChangeLog 2020-06-30 David Edelsohn * g++.dg/cpp0x/constexpr-is_literal.C: Limit test to -std=c++14. --- gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C index f255b8d..02d2ca3 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-is_literal.C @@ -1,4 +1,4 @@ -// { dg-do compile { target c++11 } } +// { dg-do compile { target c++14_only } } #include -- cgit v1.1