delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/12/09:33:44

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:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=kvSCC4mc3ZJ9/r5+uGs9WBhwGI7Ijo3vdTd89qv8fV+
wpgkSc6PhIuVU0kON4Bg9LwAnTXB/VrxX3A093HTmmDcOvPzSK5PUrmN6/UEG1nF
w3w7G3WMjFyEtUG3kCPQ+vWRx20rc8acGiaG/ljvurVu4TV5PKwZN1zTKO7ljySI
=
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:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
s=default; bh=NNrvOj+mNfKQhuwZz5tEgBTy7zc=; b=MQiiuEXEAu+KcdSYj
K4FnoYEtYTVTZn1sDXcvBodW8Wr1sow9807j4aMjLV1tVa1sXpGCgRLX5v6UkRhr
wIv2CmOPzsi80UFJQU5VFE5HmzyMuZL+lAj7CjO6Zbsizt+aslJXq1KARqBecJC+
HlvIig2DI0dlWf4UhHvGFKJyTc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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_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
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com v6CDX7F4032661
X-Nifty-SrcIP: [115.177.40.76]
Date: Wed, 12 Jul 2017 22:33:11 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT 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 DOT 535f6c54545b1296142bab7c AT nifty DOT ne DOT jp>
Mime-Version: 1.0
X-IsSubscribed: yes

I have confirmed this problem disappears in Cygwin 2.8.2-1.

Thanks.

On Wed, 12 Jul 2017 22:12:12 +0900
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> 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 <string>
> 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 <takashi DOT yano AT nifty DOT ne DOT jp>
> 
> --
> 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 <takashi DOT yano AT nifty DOT ne DOT jp>

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019