From 767e2674875139ac8f354ceee655c1a9561b9779 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 14 Dec 2023 12:29:23 -0500 Subject: [PATCH] c++: adjust class-deduction67.C for C++23 The test says that CTAD from inherited constructors doesn't work before C++23 so we should use c++20_down for the error. gcc/testsuite/ChangeLog: * g++.dg/cpp1z/class-deduction67.C: Correct dg-error target. --- gcc/testsuite/g++.dg/cpp1z/class-deduction67.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/cpp1z/class-deduction67.C b/gcc/testsuite/g++.dg/cpp1z/class-deduction67.C index 74f92325d7a3..fa1523d99d5a 100644 --- a/gcc/testsuite/g++.dg/cpp1z/class-deduction67.C +++ b/gcc/testsuite/g++.dg/cpp1z/class-deduction67.C @@ -16,5 +16,5 @@ int main() { B b = 42; // { dg-line init } // { dg-prune-output "no matching function" } - // { dg-error "class template argument deduction" "" { target c++23_down } init } + // { dg-error "class template argument deduction" "" { target c++20_down } init } } -- 2.47.2