From 7255e947f2ee7700d0a2f4115f9598e2dd8f3c2c Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 2 Aug 2021 16:33:44 +0000 Subject: Fix build of nptl/tst-thread_local1.cc with GCC 12 The test nptl/tst-thread_local1.cc fails to build with GCC mainline because of changes to what libstdc++ headers implicitly include what other headers: tst-thread_local1.cc: In function 'int do_test()': tst-thread_local1.cc:177:5: error: variable 'std::array >, 2> do_thread_X' has initializer but incomplete type 177 | do_thread_X | ^~~~~~~~~~~ Fix this by adding an explicit include of . Tested with build-many-glibcs.py for aarch64-linux-gnu. (cherry picked from commit 2ee9b24f47db8d0a8d0ccadb999335a1d4cfc364) --- nptl/tst-thread_local1.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/nptl/tst-thread_local1.cc b/nptl/tst-thread_local1.cc index 0cfdcd6d19..5f4cf5cc3b 100644 --- a/nptl/tst-thread_local1.cc +++ b/nptl/tst-thread_local1.cc @@ -21,6 +21,7 @@ #include #include +#include #include #include #include -- cgit 1.4.1