Description of problem: In a simple do ...while loop program to open a file as many times as the user wants, Red Hat 8.0 will not open the file more than once. It worked in 7.3, so it appears that I am missing part of a new update , or something is missing. Thanks, Tom Version-Release number of selected component (if applicable): How reproducible: every time Steps to Reproduce: 1. compile and execute (see code and typescript below) 2. 3. Actual results: on second loop through program, fails to open source file Expected results: expected it to open source file Additional info:
Created attachment 88938 [details] sample code sample output: [Tom@localhost Tom]$ ./a.out Opening file a.dat abcdef repeat? (y/n): n y Opening file a.dat failed to open. repeat? (y/n): y Opening file a.dat failed to open. repeat? (y/n): n bye.
Assigning to libstdc++ component, since your example is in C++.
This is a change in behavior, but is not a bug. Please read this: http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#4_4_iostreamclear