From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30964 invoked by alias); 19 Oct 2016 17:51:24 -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 30930 invoked by uid 89); 19 Oct 2016 17:51:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-0.6 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1352, HX-Gm-Message-State:9Rm, std=e2, sk:Steve.E?= X-HELO: mail-yw0-f173.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=vJf9cooQ2MAllWlKEzs39D7kqRCc201AqLW1kxCRw2U=; b=Z20LNmGZsl6olD9QeuLL+530MSzYj3ZMuXTu5A2I+TtL/nefCCaZIidqApVPcixNnL BJo/DY/b1GiBxQrNItCSA7l5l96sdduHwk0TQJwpZ5aFjbwwf8hmAyGJVeQJFdNZyioi AEEmofPw10Mwzsbuw8w/1KDtxTJgTjZJKvacOwAeazzYspXN5rGGKrnfp/xzE58/aMNq mu71xk2VSZ0oxOpfyANiuFOz+7114EJ9g4LPe17v9D6FHD21lRWQ2D5AeC0UcVncshN5 Yrnd0QqqKwP4i4wXk4jHJm7sOwFJuyhgmIOPZnTavWlpAbygGfCyg//ISJxe8o7cvGlQ ZoWw== X-Gm-Message-State: AA6/9Rm+FBEoliEOMAt2vjxaqIo7StOD1hf1Oeazzxow0VDMp2CUHyWDbOWDrKlTmugddlIiqMT48Hb6wMN7AA== X-Received: by 10.13.238.6 with SMTP id x6mr7852817ywe.212.1476899471325; Wed, 19 Oct 2016 10:51:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Andrew Pinski Date: Wed, 19 Oct 2016 17:51:00 -0000 Message-ID: Subject: Re: glibc test tst-thread_local1.cc fails to compile with latest GCC To: "Ellcey, Steve" Cc: "libc-alpha@sourceware.org" , "gcc@gcc.gnu.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2016-10/txt/msg00327.txt.bz2 On Wed, Oct 19, 2016 at 10:45 AM, Ellcey, Steve w= rote: > I have built the latest glibc sources with a ToT GCC and am trying to run= the glibc testsuite now. I ran into a couple of > new warnings that I fixed (locally) and am now looking at nptl/tst-thread= _local1.cc which dies with: > > tst-thread_local1.cc:172:7: error: =E2=80=98thread=E2=80=99 is not a memb= er of =E2=80=98std=E2=80=99 > std::thread thr{[func] {func (nullptr);}}; > > Does anyone know what is going on here? If I compile a small test progra= m: > > #include > int main(int, char **){ > std::thread tt; > } > > With G++ 5.4 (using -std=3Dc++11) this test program compiles. but with To= T GCC, it dies with: > > g++ -std=3Dc++11 thread.cc -lpthread -o x > thread.cc: In function =E2=80=98int main(int, char**)=E2=80=99: > thread.cc:5:5: error: =E2=80=98thread=E2=80=99 is not a member of =E2=80= =98std=E2=80=99 > std::thread tt; > ^~~ > thread.cc:5:5: note: suggested alternative: =E2=80=98fread=E2=80=99 > std::thread tt; > ^~~ > fread I Just tested it with revision 241328 of GCC, it works ... apinski@apinski-ss1:~/src/local4$ ./tools/bin/g++ t88.cc -std=3Dc++11 -mab= i=3Dilp32 apinski@apinski-ss1:~/src/local4$ ./a.out Thanks, Andrew > > > Is there some C++ standard change that I am not aware of or some other he= ader file I need to include? > > Steve Ellcey