public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Dan Kegel <dank@kegel.com>
To: cygwin@cygwin.com
Subject: Re: [GCC] C++ program calling std::getline() crashes with certain compilation flags
Date: Thu, 06 Jul 2017 14:21:00 -0000	[thread overview]
Message-ID: <CAPF-yOYV2NqzGJ9Faixvw92vW7s2-fDyiv40Nvh7Jy=BqjYE6g@mail.gmail.com> (raw)
In-Reply-To: <80757ab8baa6434a8c56104c0ebfe803@Antiope.crf.canon.fr>

On Thu, Jul 6, 2017 at 6:07 AM, TANNHAUSER Falk
<Falk.Tannhauser@crf.canon.fr> wrote:
> The following C++ program crashes when compiled with GCC (both 5.4 and 6.3) under Cygwin, when compiled with both an optimization level higher than -O0 (i.e. -O1, -O2 or -O3) and the C++ standard set to -std=c++nn (for any supported nn, i.e. 98, 03, 11, 14 or 17):

Bonus points if you can reduce this testcase further, see
https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction
for how to take the preprocessed output and automatically
reduce it to a much smaller file.

And by 'bonus points', I mean 'that's the first thing a
toolchain maintainer would probably do, so handing it
to them on a silver platter would help get their attention'.
- Dan

--
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-06 14:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-06 13:07 TANNHAUSER Falk
2017-07-06 14:21 ` Dan Kegel [this message]
2017-07-07 11:31   ` TANNHAUSER Falk
2017-07-13 12:01     ` TANNHAUSER Falk
2017-07-06 14:53 ` Masamichi Hosoda

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='CAPF-yOYV2NqzGJ9Faixvw92vW7s2-fDyiv40Nvh7Jy=BqjYE6g@mail.gmail.com' \
    --to=dank@kegel.com \
    --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).