From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96224 invoked by alias); 5 Jun 2018 15:56: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 95743 invoked by uid 89); 5 Jun 2018 15:56:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:sk:g16-v6m, H*c:alternative X-HELO: mail-it0-f49.google.com Received: from mail-it0-f49.google.com (HELO mail-it0-f49.google.com) (209.85.214.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 05 Jun 2018 15:56:26 +0000 Received: by mail-it0-f49.google.com with SMTP id j186-v6so3988579ita.5 for ; Tue, 05 Jun 2018 08:56: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:from:date:message-id:subject:to; bh=2yy7jlGs12+o6p01cHX3xf7rlwMtRuniVhWVINan0vU=; b=cfLvuurak7HI1QddWBUuuwV+sckV5zczPpjQOZuLs0/4kX5DcHT5TwAjq7QGuteccr Y/uQsdbzUp0kgXZo+3L4hnyoHWjqj1EFA0cnCA3+wTDw2/dK2UIEuOD9sBaac2uj7/Gj p5O/jfVuVJzaO7h9ULKniKU32q/BlNkKIiZbMW5z5sE8dw1oOBZ0n8dmdJ+THlLwZoKi 50tGWiS/DUalZFYwEPeRJ0g4SYjfTqsK1v06aJEUo25DM4PV5mY1luuOKxvU9zUX/D+S Uk71Qnvlq1nnDoIb0JtmP/pWyOw+TZ2mfiwgi3l8svcLYwRwaP4esuqB6tsrYZjcaEem pmfw== X-Gm-Message-State: APt69E0ZgdoOB6uOqfDlLIiBIxYTmDmL9DRvfE2SLEYVjKS7mMuJRPxo 23mJBSXWMAsdTCkiYrONVN2iMAu9aYtC30DYjJTZkD4z X-Google-Smtp-Source: ADUXVKJWCGCwtbdgFyOJKxIzMix8Afwui9vm2tl+28esi6mgSJRDwlutXUzwqTo9O3ZV6LEGyjAeT0OKds4F/GYRB48= X-Received: by 2002:a24:b610:: with SMTP id g16-v6mr19392374itf.13.1528214184427; Tue, 05 Jun 2018 08:56:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:9164:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 08:56:03 -0700 (PDT) From: Ivan Shynkarenka Date: Tue, 05 Jun 2018 15:56:00 -0000 Message-ID: Subject: GCC 7.3.0 -std=gnu++17 failed to getline() from std::ifstream To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-06/txt/msg00038.txt.bz2 Hello, I found an issue with Cygwin GCC 7.3.0 when building with -std=gnu++17 flag. The following test.cpp shows the issue: #include #include int main(int argc, char** argv) { std::string line; std::ifstream stream(" test.cpp"); while (getline(stream, line)) std::cout << line << std::endl; return 0; } Build: g++ -std=gnu++17 test.cpp Run: Aborted (core dumped) There is no issue when building with -std=gnu++14 --- Ivan -- 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