From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id C0EA4385B523; Thu, 12 Jan 2023 06:21:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0EA4385B523 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673504496; bh=p0rxnUD85Tv2uHd8qR65eisVypa/j6Co6MK4mg7gUQQ=; h=From:To:Subject:Date:From; b=yo3+wgi/o3amb+WyMgO3NhIBmbJ2KH1YnWTBitOILLAn8ocCeFxm7NoiF1ZPmERPh 1+GzUWW6nqr/TqFZDb5a6h9ItfhXXjTnvTPMd1QIqc0rBRTJywagmphNo4NT+pv2jS 0jtMicadepnZbmZvI4+n4PXpjlG1cmloN5SHry0Y= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc/release/2.34/master] 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/release/2.34/master X-Git-Oldrev: 6ff61a51459d141782fbcc32ae81c0ef1954dad6 X-Git-Newrev: 803c959745fd7c679e00f9bad58822616f0e51cb Message-Id: <20230112062136.C0EA4385B523@sourceware.org> Date: Thu, 12 Jan 2023 06:21:36 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=803c959745fd7c679e00f9bad58822616f0e51cb commit 803c959745fd7c679e00f9bad58822616f0e51cb 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. (cherry picked from commit 2ee9b24f47db8d0a8d0ccadb999335a1d4cfc364) 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