From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92178 invoked by alias); 12 Jul 2017 13:12:33 -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 90123 invoked by uid 89); 12 Jul 2017 13:12:32 -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 X-HELO: conssluserg-01.nifty.com Received: from conssluserg-01.nifty.com (HELO conssluserg-01.nifty.com) (210.131.2.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Jul 2017 13:12:30 +0000 Received: from Express5800-S70 (ntsitm128076.sitm.nt.ngn2.ppp.infoweb.ne.jp [115.177.40.76]) (authenticated) by conssluserg-01.nifty.com with ESMTP id v6CDC7Nv023983 for ; Wed, 12 Jul 2017 22:12:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com v6CDC7Nv023983 X-Nifty-SrcIP: [115.177.40.76] Date: Wed, 12 Jul 2017 13:12:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Subject: 64 bit g++ 5.4.0 bug Message-Id: <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/msg00207.txt.bz2 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