public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Alberto Escrig Vidal <alberto.escrig@itc.uji.es>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: Updated: gcc-7.3.0-2 (x86/x86_64)
Date: Tue, 05 Jun 2018 18:07:00 -0000	[thread overview]
Message-ID: <VI1PR0302MB3391C38733AE65A5B9CBA5E9A0660@VI1PR0302MB3391.eurprd03.prod.outlook.com> (raw)
In-Reply-To: <VI1PR0302MB3391D4930689A1B82885F91DA06D0@VI1PR0302MB3391.eurprd03.prod.outlook.com>

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 <string>
#include <iostream>
#include <sstream>

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 <shared_mutex>

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

  parent reply	other threads:[~2018-06-05 18:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1268fcb1-715a-0518-cc94-91f452d029fb@gmail.com>
2018-05-30 10:57 ` Alberto Escrig Vidal
2018-05-30 16:14   ` JonY
2018-05-31  2:22     ` Ken Brown
2018-06-05 18:07   ` Alberto Escrig Vidal [this message]
2018-06-05 23:28   ` JonY
2018-05-30 19:57 Dai Conrad
2018-05-30 20:31 Dai Conrad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR0302MB3391C38733AE65A5B9CBA5E9A0660@VI1PR0302MB3391.eurprd03.prod.outlook.com \
    --to=alberto.escrig@itc.uji.es \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).