]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: remove dg-warning [PR117274]
authorJason Merrill <jason@redhat.com>
Thu, 24 Oct 2024 15:13:30 +0000 (11:13 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 24 Oct 2024 15:14:23 +0000 (11:14 -0400)
This warning was added for GCC 15, don't expect it.

PR c++/117274
PR c++/117107

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/decomp10.C: Remove captured binding warning.

gcc/testsuite/g++.dg/cpp2a/decomp10.C

index 8fe425b5d01ea07bdfdd1afacd87af1e94438f00..cadeee347b4cb2cf4a13e4504b1b07fa4a57f3a3 100644 (file)
@@ -12,7 +12,7 @@ struct tuple {
   void check_tuple_like() {
     tuple t;
     auto [v, r] = t; // { dg-warning "structured bindings" "" { target c++14_down } }
-    (void)[v, r] {   // { dg-warning "captured structured" "" { target c++17_down } }
+    (void)[v, r] {
         decltype(v) x;
     };
   }