From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19428 invoked by alias); 19 Oct 2016 17:45:37 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 19367 invoked by uid 89); 19 Oct 2016 17:45:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=tot, HX-HELO:sk:NAM02-S, H*RU:sk:NAM02-S, Hx-spam-relays-external:sk:NAM02-S X-HELO: NAM02-SN1-obe.outbound.protection.outlook.com From: "Ellcey, Steve" To: "libc-alpha@sourceware.org" , "gcc@gcc.gnu.org" Subject: glibc test tst-thread_local1.cc fails to compile with latest GCC Date: Wed, 19 Oct 2016 17:45:00 -0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Steve.Ellcey@cavium.com; x-ms-office365-filtering-correlation-id: 3b909c19-b7cb-42dd-bad8-08d3f847b355 x-microsoft-exchange-diagnostics: 1;SN2PR0701MB1070;7:jQHvfcVnunjj9MmzflZE2xzk2a2yJ5fTPGnwkV30mjX5sb2crIam3z3uaGwgv0yXgqWURvrkVZvMQXINoT0Vk+xl2ZlssSlB/lvEzckSdw2VTByQlfTkwSg5Gjtflh3U4jR8NR04Db1uw+nTbFLQ0I4fyDoPcgjcr9E0yX5bQGeZwLmlySZFS1y6LcPuM7te84bqvpB0fuDWmmiXXJwAWhZApMF61TnzG1L/5QGmtA40GStW0cQ8u+WCnxN1N6YL2J1AnsQs54P3qvlDZoAeTI5/5UxmZUwPiPfA994q6vOpboqUD+vH+jyKpjRMRx/UsxKKGMKTjf5kQ2yCllSpEsBFIc+aduKCVNdwgydnun4= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN2PR0701MB1070; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:SN2PR0701MB1070;BCL:0;PCL:0;RULEID:;SRVR:SN2PR0701MB1070; x-forefront-prvs: 0100732B76 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(189002)(199003)(3660700001)(77096005)(2900100001)(87936001)(102836003)(92566002)(5660300001)(8936002)(74316002)(11100500001)(2906002)(101416001)(107886002)(5001770100001)(6116002)(19580395003)(33656002)(54356999)(8676002)(81156014)(10400500002)(7696004)(9686002)(68736007)(3280700002)(122556002)(50986999)(7846002)(7736002)(86362001)(305945005)(97736004)(66066001)(189998001)(106356001)(105586002)(99286002)(5002640100001)(3846002)(106116001)(81166006)(586003)(2501003)(229853001)(76576001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN2PR0701MB1070;H:SN2PR0701MB1071.namprd07.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2016 17:45:22.1055 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB1070 X-SW-Source: 2016-10/txt/msg00326.txt.bz2 I have built the latest glibc sources with a ToT GCC and am trying to run t= he glibc testsuite now. I ran into a couple of new warnings that I fixed (locally) and am now looking at nptl/tst-thread_l= ocal1.cc which dies with: tst-thread_local1.cc:172:7: error: =91thread=92 is not a member of =91std=92 std::thread thr{[func] {func (nullptr);}}; Does anyone know what is going on here? If I compile a small test program: #include int main(int, char **){ std::thread tt; } With G++ 5.4 (using -std=3Dc++11) this test program compiles. but with ToT = GCC, it dies with: g++ -std=3Dc++11 thread.cc -lpthread -o x thread.cc: In function =91int main(int, char**)=92: thread.cc:5:5: error: =91thread=92 is not a member of =91std=92 std::thread tt; ^~~ thread.cc:5:5: note: suggested alternative: =91fread=92 std::thread tt; ^~~ fread Is there some C++ standard change that I am not aware of or some other head= er file I need to include? Steve Ellcey