]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: adjust class-deduction67.C for C++23
authorMarek Polacek <polacek@redhat.com>
Thu, 14 Dec 2023 17:29:23 +0000 (12:29 -0500)
committerMarek Polacek <polacek@redhat.com>
Thu, 14 Dec 2023 17:29:42 +0000 (12:29 -0500)
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

index 74f92325d7a360a129be87513596ca621272c278..fa1523d99d5af9d9b2d63ccac5b60df924da6abd 100644 (file)
@@ -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 }
 }