From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54010 invoked by alias); 30 May 2018 16:14:01 -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 53990 invoked by uid 89); 30 May 2018 16:14:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=D*es, HX-Received:sk:y15-v6m 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; Wed, 30 May 2018 16:13:58 +0000 Received: by mail-it0-f49.google.com with SMTP id j186-v6so24162382ita.5 for ; Wed, 30 May 2018 09:13:58 -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=e8aUIZULGnhtDHg1AvC5SDZLJT4itecF/vVuyWkzuAQ=; b=JL/ejBmUUYYR5fvm/TDbBnjcB2gGtqNoFKtE99UYTyHos50aUBLeV1Z01bEbA+3u7k qMf/FB5GdbWccIYbbnHnji8qDuJQrM/4zfjLypJ9D95FOSTAysyJTgiYLNtSYp4QcA56 dA8KzjWrCAeLiBIjxWeOsFSOWNKeUpynLiAAXUNcxyVPpyPxdZo3FfLftU2x1HXHBDEE yQhei1J6ARD9veAarylNRpkHSwn7qT2B8d6AQ0GkeEXjLpbKte5pW1KutZjg+jFj67Z6 ZJXYtw5IJZSW/To3LwfNHEqynMhuyz2Mcgpc2CgIKuNwqMvDxGkd1LKnkFrZfQCplhXs LReQ== X-Gm-Message-State: ALKqPwf/r2qP+guO/wtIXZ/Hc62iCI//mt1IDb4wgb130YJnHxV564u5 GJzWWXYg1Nf2x5Mfh+g3bGNPUTC+fSk0SPsgdID6HA== X-Google-Smtp-Source: ADUXVKJOlG4lOutOUduSIHbTgkYcpjpLMbD6Gi4lOwNb7pD5a7NumkRE0tzFqazl5u1uqhb2+K5fmDDBuzpMteI7xPc= X-Received: by 2002:a24:aa4f:: with SMTP id y15-v6mr2412870iti.144.1527696836598; Wed, 30 May 2018 09:13:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ad5:52d1:0:0:0:0:0 with HTTP; Wed, 30 May 2018 09:13:56 -0700 (PDT) From: Dai Conrad Date: Wed, 30 May 2018 19:57:00 -0000 Message-ID: Subject: Re: Updated: gcc-7.3.0-2 (x86/x86_64) To: cygwin mailing list Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-05/txt/msg00324.txt.bz2 On Tue, 29 May 2018 05:32 PM, Alberto Escrig Vidal wrote: > 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.dllcomp > > The program works fine if compiled with -std=c++14. This also happens with clang++ from clang-5.0.1-2: 0x00000003f0e9ca0b in cygstdc++-6!_ZNSs7reserveEm () from /usr/bin/cygstdc++-6.dll > 2) > > This program fails to compile (it also failed with g++-6). > > #include > > int main() {} This fails with g++ -std=c++14 or -std=c++17; it compiles with -std=c++11, gcc-g++-7.3.0-2. It DOES NOT fail with clang++ at any of those language levels. I'm on Windows 10, 64-bit Cygwin, latest everything i.e. whatever I have installed is fully updated via setup. "I don't have a solution, but I certainly admire the problem." David Conrad -- 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