Web lists-archives.com

Re: Updated: gcc-7.3.0-2 (x86/x86_64)

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.


#include <string>
#include <iostream>
#include <sstream>

int main()
std::string Str;
std::stringstream ss("hello");
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.


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