From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5344 invoked by alias); 12 Jul 2017 13:33:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 5336 invoked by uid 89); 12 Jul 2017 13:33:29 -0000 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_MX4 autolearn=no version=3.3.2 spammy=H*F:D*ne.jp, D*ne.jp, H*MI:sk:2017071 X-HELO: conssluserg-03.nifty.com Received: from conssluserg-03.nifty.com (HELO conssluserg-03.nifty.com) (210.131.2.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Jul 2017 13:33:27 +0000 Received: from Express5800-S70 (ntsitm128076.sitm.nt.ngn2.ppp.infoweb.ne.jp [115.177.40.76]) (authenticated) by conssluserg-03.nifty.com with ESMTP id v6CDX7F4032661 for ; Wed, 12 Jul 2017 22:33:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com v6CDX7F4032661 X-Nifty-SrcIP: [115.177.40.76] Date: Wed, 12 Jul 2017 13:33:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: 64 bit g++ 5.4.0 bug Message-Id: <20170712223311.3f552af940d51b6a2f290fcc@nifty.ne.jp> In-Reply-To: <20170712221212.535f6c54545b1296142bab7c@nifty.ne.jp> References: <20170712221212.535f6c54545b1296142bab7c@nifty.ne.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00208.txt.bz2 I have confirmed this problem disappears in Cygwin 2.8.2-1. Thanks. On Wed, 12 Jul 2017 22:12:12 +0900 Takashi Yano wrote: > Hello. > > I have encountered a weird behaviour of g++ compiler. > > If the following code is compiled with -ansi -O flags, > the resulting executable causes core dump. > > This is caused only in 64 bit environment. In 32 bit > environment, it works as expected. > > $ cat str.cc > #include > int main() > { > std::string s; > s = "ABC"; > return 0; > } > $ g++ -ansi -O str.cc -o str > $ ./str > Abort (core dumped) > $ > > Is this known problem? > > My environment is as follows. > > uname -a > CYGWIN_NT-10.0 Express5800-S70 2.8.1(0.312/5/3) 2017-07-03 14:11 x86_64 Cygwin > > g++ --version > g++ (GCC) 5.4.0 > Copyright (C) 2015 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > Thank you in advance. > > -- > Takashi Yano > > -- > 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 > -- Takashi Yano -- 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