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:from:to:subject:date:message-id:references :in-reply-to:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=m6mkkulGin6kl+za kFDkJACU8B0jIj/0hoiZO2NGBOog50b0Cdovzy7rxoM93HThdSRRq14dn/Gh3pwE sRoiebYLC1hnprSfaCqq0W+m3F0agnpp7lEZdHveBqEglmGlrsF1KtSiAwQkpSe5 27bfcd9mWefK1LGtV18Qe7xBqHw= 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:from:to:subject:date:message-id:references :in-reply-to:mime-version:content-type :content-transfer-encoding; s=default; bh=gODTXVdC2xUoVxPcZs8iFu mFx38=; b=yRE97tQJUe8hGfDKqyXdpieiOX6106Cu7PLLo2xKZjBqF9g2OhEasu jMKgUmrAE89wvQSSx11Vh35/p7xXHgkCbmtWXZ5A+fhr4BBUS3OrbMH5FspGmH5L r+QDAKHy8sms3OKaoCDa1Ti8AALzowVjYKjUHRInX52UBBdat0WsI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=3.5 required=5.0 tests=AWL,BAYES_00,FOREIGN_BODY1,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=asunto, enviado, Para, mayo X-HELO: EUR02-HE1-obe.outbound.protection.outlook.com From: Alberto Escrig Vidal To: The Cygwin Mailing List Subject: Re: Updated: gcc-7.3.0-2 (x86/x86_64) Date: Tue, 5 Jun 2018 18:07:29 +0000 Message-ID: References: <1268fcb1-715a-0518-cc94-91f452d029fb AT gmail DOT com>, In-Reply-To: authentication-results: spf=none (sender IP is ) smtp.mailfrom=alberto DOT escrig AT itc DOT uji DOT es; x-ms-publictraffictype: Email x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-traffictypediagnostic: VI1PR0302MB3439: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-forefront-prvs: 0694C54398 received-spf: None (protection.outlook.com: itc.uji.es does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 0629e080-ca28-4699-2b63-08d5cb0f33e6 X-OriginatorOrg: itc.uji.es X-MS-Exchange-CrossTenant-Network-Message-Id: 0629e080-ca28-4699-2b63-08d5cb0f33e6 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jun 2018 18:07:29.7994 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6a53a07f-f9a9-45ac-a064-be615a5a735c X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0302MB3439 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w55I7k6q028034 Some more imput: Problem (1) is related to getline. I prepared this minimal example after disecting a program that parses a text file which aborted under cygwin (despite it worked well compiled with g++-7 under ubuntu). Thanks for the patch for problem (2) Ken! ________________________________ De: Alberto Escrig Vidal Enviado: martes, 29 de mayo de 2018 19:32:39 Para: The Cygwin Mailing List Asunto: Re: Updated: gcc-7.3.0-2 (x86/x86_64) Thanks so much Jon! I have noticed a couple of issues with g++-7. 1) #include #include #include int main() { std::string Str; std::stringstream ss("hello"); std::getline(ss,Str); std::cout << Str; return 0; } Compiling the above program with: g++ -g -std=c++17 foo.cpp Compiles just fine, but aborts when running it. Running it with gdb: Program received signal SIGABRT, Aborted. 0x6326126a in cygstdc++-6!_ZNSs7reserveEj () from /usr/bin/cygstdc++-6.dll The program works fine if compiled with -std=c++14. 2) This program fails to compile (it also failed with g++-6). #include int main() {} -- 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