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:from:date:message-id:subject:to :content-type; q=dns; s=default; b=QVcAilAyuDEjIs9PkyQQhrhSMLXUJ KUo+PpGik12W1bA5fkCCoaEvHZLr/wXgr0x1Spi5uclSF1u9A06QTE18D8bwzrW8 nfEPq9zReiI8t1uXLPMXE0soSeXiteNJqKLTxeGyt5hYHYImSYPSDRCE2XDNZs6U zpy5pLrnIZBE8k= 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:from:date:message-id:subject:to :content-type; s=default; bh=BJrFAw0gIE0mPExsNAf0OmJ65PY=; b=aaQ PVZNK9yEA1sbxsVbnLouYBc8JKqQVRhYHu4bvZAweZVJRBDVhIu9EkweXOmhnmmI Sc+OV3KlRRfcS65uSt/UO8Bze8JNsK16pYAb+od0ycL/o0uwkSO8iu8qBd/MRw7r ZYEpZDWmbQgHJ1lfUsvC354AnS308P6Psdmhs1kY= 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=-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 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 From: Dai Conrad Date: Wed, 30 May 2018 12:13:56 -0400 Message-ID: Subject: Re: Updated: gcc-7.3.0-2 (x86/x86_64) To: cygwin mailing list Content-Type: text/plain; charset="UTF-8" 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