From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78655 invoked by alias); 6 Jul 2017 14:21:29 -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 78641 invoked by uid 89); 6 Jul 2017 14:21:28 -0000 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 Received: from mail-pf0-f172.google.com (HELO mail-pf0-f172.google.com) (209.85.192.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Jul 2017 14:21:26 +0000 Received: by mail-pf0-f172.google.com with SMTP id c73so1741903pfk.2 for ; Thu, 06 Jul 2017 07:21:26 -0700 (PDT) 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 Received: by 10.100.187.76 with HTTP; Thu, 6 Jul 2017 07:21:24 -0700 (PDT) In-Reply-To: <80757ab8baa6434a8c56104c0ebfe803@Antiope.crf.canon.fr> References: <80757ab8baa6434a8c56104c0ebfe803@Antiope.crf.canon.fr> From: Dan Kegel Date: Thu, 06 Jul 2017 14:21:00 -0000 Message-ID: Subject: Re: [GCC] C++ program calling std::getline() crashes with certain compilation flags To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00091.txt.bz2 On Thu, Jul 6, 2017 at 6:07 AM, TANNHAUSER Falk 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=3Dc++nn (for an= y 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