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

Alberto Escrig Vidal alberto.escrig@itc.uji.es
Wed May 30 10:57:00 GMT 2018


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



More information about the Cygwin mailing list