From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1105) id B5122388A43A; Mon, 2 Aug 2021 16:34:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5122388A43A Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Joseph Myers To: glibc-cvs@sourceware.org Subject: [glibc] Fix build of nptl/tst-thread_local1.cc with GCC 12 X-Act-Checkin: glibc X-Git-Author: Joseph Myers X-Git-Refname: refs/heads/master X-Git-Oldrev: 60698263122b7c54ded3f70a466176e17a529480 X-Git-Newrev: 2ee9b24f47db8d0a8d0ccadb999335a1d4cfc364 Message-Id: <20210802163412.B5122388A43A@sourceware.org> Date: Mon, 2 Aug 2021 16:34:12 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2021 16:34:12 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2ee9b24f47db8d0a8d0ccadb999335a1d4cfc364 commit 2ee9b24f47db8d0a8d0ccadb999335a1d4cfc364 Author: Joseph Myers Date: Mon Aug 2 16:33:44 2021 +0000 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. Diff: --- 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 9608afa4b7..338aafea05 100644 --- a/nptl/tst-thread_local1.cc +++ b/nptl/tst-thread_local1.cc @@ -21,6 +21,7 @@ #include #include +#include #include #include #include