delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/06/10:22:28

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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
q=dns; s=default; b=vchljthqr0IonA+PY5qJhEaGwz4lMtXiCn7PfyQrJ8J
rQliwq/7pscVQmH2u7MJHyKelI7ENB3jRrZrBcTFcTLLOnXtxtSoAL0p8ngT/LtI
/Txxq/+8ksKj8jMxZ13XgZ2tlyDCXmqYd8Klh9tyBI6bbrosk3XvVaKTEfycyeEk
=
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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
s=default; bh=XFkZbPriH4ZnHyB0cDHb/T0xCKQ=; b=DZk+JhKI02LduDeUn
/jzQysWSDgirfORYgvJK96LWNh28Zs3QcPN6gLJVRj3mwgrl2MMqjLsCVZpR3gvm
hWxU1Bz+Ii0dPRAVmEkDE4rxEIoeZfIqaANfZhm0mG7ow0BScGT/kjHJX2yiV8mL
9Ri31OP8G/UxXK5P1TteGD81Ts=
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=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=silver, dan
X-HELO: mail-pf0-f172.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-transfer-encoding; bh=xdS3UgxVBvIoOKFXUiilhOpgEAMWKGXCkoQHR7mZ+dc=; b=mqY2XXBTirHR1ujL3UMt8OEbedGy/g0EuEZk5CCty70K+M5bxysE6fuOnEFDbY3QX4 HWshVb+Enc1e3u6A5M1YSW1LyrMGSvu6zfzgc05GOaAbc+F+6IwPCmvG1ENrfdnF4f4A PW6tskcBoz+jKDfePX4w2MwkUgaMcBrtrK8n0Qmv0w1crLvDZ3Ep0w8Rn+GaWHW3YPs1 aGakVB85UJzLHUVS2u1yZOy8sPbu5iXC4eW8MlpWAEBhhfojiKD+SdOkhS6H0WcbWB0+ /nsHuUFiGyAghurn8E9Y8pEL0uCiHf+wvJ2HWogr9Gn8CE0NbcXcDr1OGJI5EFkn12r9 YKNQ==
X-Gm-Message-State: AIVw110uRDynPoxeESZcozJBPRkAP6YqelTOU/kGQ7goI7brljI4Thyc lJqlUVEoYP68rEEKAR3vibxPf+0ohxXl
X-Received: by 10.98.201.75 with SMTP id k72mr21039627pfg.99.1499350884514; Thu, 06 Jul 2017 07:21:24 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <80757ab8baa6434a8c56104c0ebfe803@Antiope.crf.canon.fr>
References: <80757ab8baa6434a8c56104c0ebfe803 AT Antiope DOT crf DOT canon DOT fr>
From: Dan Kegel <dank AT kegel DOT com>
Date: Thu, 6 Jul 2017 07:21:24 -0700
Message-ID: <CAPF-yOYV2NqzGJ9Faixvw92vW7s2-fDyiv40Nvh7Jy=BqjYE6g@mail.gmail.com>
Subject: Re: [GCC] C++ program calling std::getline() crashes with certain compilation flags
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v66EMRak018566

On Thu, Jul 6, 2017 at 6:07 AM, TANNHAUSER Falk
<Falk DOT Tannhauser AT crf DOT canon DOT 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


- Raw text -


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