libstdc++-v3/ChangeLog:
* testsuite/20_util/scoped_allocator/69293_neg.cc: Add dg-error
for additional errors in C++20.
* testsuite/20_util/specialized_algorithms/memory_management_tools/destroy_neg.cc:
Likewise.
* testsuite/20_util/uses_allocator/69293_neg.cc: Likewise.
* testsuite/27_io/filesystem/path/io/dr2989.cc: Likewise.
auto p = sa.allocate(1);
sa.construct(p); // this is required to be ill-formed
// { dg-error "failed: .* uses_allocator is true" "" { target *-*-* } 0 }
+ // { dg-error "too many initializers for 'X'" "" { target c++2a } 0 }
}
// Needed because of PR c++/92193
}
// { dg-error "value type is destructible" "" { target *-*-* } 0 }
+// { dg-error "use of deleted function" "" { target c++20 } 0 }
+// { dg-error "is private within this context" "" { target c++20 } 0 }
alloc_type a;
std::tuple<X> t(std::allocator_arg, a); // this is required to be ill-formed
// { dg-error "failed: .* uses_allocator is true" "" { target *-*-* } 0 }
- // { dg-error "no matching function for call" "" { target c++2a } 0 }
+ // { dg-error "too many initializers for 'X'" "" { target c++2a } 0 }
}
s >> p; // { dg-error "no match" }
}
// { dg-prune-output "no type .*enable_if" }
+// { dg-prune-output "template constraint failure" }