[gcc r14-6557] c++: adjust class-deduction67.C for C++23
Marek Polacek
mpolacek@gcc.gnu.org
Thu Dec 14 17:32:54 GMT 2023
https://gcc.gnu.org/g:767e2674875139ac8f354ceee655c1a9561b9779
commit r14-6557-g767e2674875139ac8f354ceee655c1a9561b9779
Author: Marek Polacek <polacek@redhat.com>
Date: Thu Dec 14 12:29:23 2023 -0500
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.
Diff:
---
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 74f92325d7a..fa1523d99d5 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 }
}
More information about the Gcc-cvs
mailing list