public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: 64 bit g++ 5.4.0 bug
Date: Wed, 12 Jul 2017 13:33:00 -0000	[thread overview]
Message-ID: <20170712223311.3f552af940d51b6a2f290fcc@nifty.ne.jp> (raw)
In-Reply-To: <20170712221212.535f6c54545b1296142bab7c@nifty.ne.jp>

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.yano@nifty.ne.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.yano@nifty.ne.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.yano@nifty.ne.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

      reply	other threads:[~2017-07-12 13:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-12 13:12 Takashi Yano
2017-07-12 13:33 ` Takashi Yano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170712223311.3f552af940d51b6a2f290fcc@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).