X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:from:to:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=ETJhbkbinsJ7wXaQ 30AT7axZoxhTjl47D8H99rT9F/71+IM2lEpPlv6iZhbHe8f1D8RwCq6imF7ZlY4D InB1QqfFp/dDbpja9Fta+F0snroO3JcoAJKbbgiJaed5PL4vUHqYZJuCVkk9xUkZ CiogrgcvK0xib5DB0Gy7DwYZIJA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:from:to:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=PYQRkM9UCWZW8ylyXC+iEP kHw+E=; b=fqPXMojkUhRrBuuGWqgZXzufZW9rG5yPrrSMJDWLBB42+YFLkdql5D DWJ5CXVCfXQhmeD2Ytzz7Uflw5vPlksmGMg93g3WQSFgrtXow+gsXuL4wDBqiJ4Z mhrUP94SL8UsjzLTRV4NvWfsndCzwXx25wLvxweJ00jK8dG0u4axE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=atzeri, Atzeri, symptoms, Hx-spam-relays-external:sk:mailout X-HELO: mailout11.t-online.de Subject: Re: GCC 7.3.0 -std=gnu++17 failed to getline() from std::ifstream From: Christian Franke To: cygwin AT cygwin DOT com References: <0725bdbd-0411-138a-7ea9-d6395e3256e3 AT t-online DOT de> Message-ID: <132567e2-8ddb-6675-1b8d-1777be1b4d99@t-online.de> Date: Fri, 22 Jun 2018 10:48:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0 SeaMonkey/2.51 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Christian Franke wrote: > Marco Atzeri wrote: >> On 6/12/2018 7:11 PM, Christian Franke wrote: >>> ... >>> The attached patch for >>> /usr/lib/gcc/*-pc-cygwin/7.3.0/include/c++/bits/basic_string.h >>> fixes this. >>> Please forget this patch. It was bases on a wrong assumption and only cures symptoms. >> >> It seems an upstream bug so could you report it there ? >> > > Done: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138 > If build with -std=c++17, a duplicate _S_empty_rep_storage[] which already exists in the DLL is generated in the executable. This results in a false negative string.empty() test in the DLL. See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86138#c6 Workarounds: - Link with -static, or - Compile with -D_GLIBCXX_USE_CXX11_ABI Fix: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=261873 Regards, Christian -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple