GCC 7.3.0 -std=gnu++17 failed to getline() from std::ifstream
Marco Atzeri
marco.atzeri@gmail.com
Tue Jun 5 21:01:00 GMT 2018
On 6/5/2018 10:32 PM, Ivan Shynkarenka wrote:
> Hello
>
> I use x64 bit Cygwin and it failed in my home, work and Appveyor. I add
> cygcheck.out with my environment.
>
> I'm sorry about misspell prefix space in my prev example. Please try the
> following one:
>
> #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;
> }
>
> g++ -std=gnu++17 test.cpp
works fine on 32 bit and 64 bit on my W7
>
> ------------------
>
> cygcheck.out
>
as attachment, not in line with the mail.
As delivered, it screws up the mailing list search capability
with tons of false positive
What is Y: a server file system ?
--
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