GCC 7.3.0 -std=gnu++17 failed to getline() from std::ifstream
Ivan Shynkarenka
chronoxor@gmail.com
Tue Jun 5 15:56:00 GMT 2018
Hello,
I found an issue with Cygwin GCC 7.3.0 when building with -std=gnu++17
flag.
The following test.cpp shows the issue:
#include <fstream>
#include <iostream>
int main(int argc, char** argv)
{
std::string line;
std::ifstream stream(" test.cpp");
while (getline(stream, line))
std::cout << line << std::endl;
return 0;
}
Build: g++ -std=gnu++17 test.cpp
Run: Aborted (core dumped)
There is no issue when building with -std=gnu++14
---
Ivan
--
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