]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Suppress some more additional diagnostics [PR117294]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 20 Aug 2025 15:50:12 +0000 (16:50 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 21 Aug 2025 09:03:19 +0000 (10:03 +0100)
libstdc++-v3/ChangeLog:

PR c++/117294
* testsuite/20_util/optional/cons/value_neg.cc: Prune additional
output for C++20 and later.
* testsuite/20_util/scoped_allocator/69293_neg.cc: Match
additional error for C++20 and later.

libstdc++-v3/testsuite/20_util/optional/cons/value_neg.cc
libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc

index d3abd03c01afdc1d3efea7f72e81e19dc02d5ba5..f6b1886efb996e49526118194846bd3395e1e018 100644 (file)
@@ -37,3 +37,4 @@ int main()
   }
 }
 // { dg-prune-output "no type .*enable_if" }
+// { dg-prune-output "no matching function for call to 'main..::U::U..'" }
index d4be08671f5babe27e303480c19a86c033857c5b..a3fbeba79c8ae78c7835d3ee9df10e09b96960e7 100644 (file)
@@ -42,6 +42,8 @@ static_assert(uses_allocator<X, inner_alloc_type>{}, "");
 static_assert(!is_constructible<X, allocator_arg_t, inner_alloc_type>{}, "");
 static_assert(!is_constructible<X, inner_alloc_type>{}, "");
 
+// { dg-error "too many initializers" "" { target c++20 } 0 }
+
 void
 test01()
 {