commit bca1c431affee41ecadb7f29d8d65142a73e0ebf Author: Jonathan Wakely Date: Fri Jan 14 22:08:16 2022 libstdc++: Ignore deprecated warnings [PR104037] The std::pointer_to_binary_function utility was deprecated in C++11 and removed in C++17. Libstdc++ has started to warn about using it, so suppress the warnings for this test. gcc/testsuite/ChangeLog: PR testsuite/104037 * g++.old-deja/g++.robertl/eb43.C: Ad -Wno-deprecated. diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C index 90afbe4f190..c54050c3c7a 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C @@ -5,6 +5,7 @@ // to pointer_to_binary_function, which has an `explicit' constructor. // { dg-prune-output "note" } +// { dg-options "-Wno-deprecated" } #include #include