Bug 80490 - won't re open files in simple program
won't re open files in simple program
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: libstdc++ (Show other bugs)
8.0
All Linux
medium Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-27 00:40 EST by Need Real Name
Modified: 2015-01-07 19:02 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-17 12:25:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
sample code (451 bytes, text/plain)
2002-12-27 00:44 EST, Need Real Name
no flags Details

  None (edit)
Description Need Real Name 2002-12-27 00:40:40 EST
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:
Comment 1 Need Real Name 2002-12-27 00:44:50 EST
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.
Comment 2 Jens Petersen 2003-01-15 12:37:50 EST
Assigning to libstdc++ component, since your example is in C++.
Comment 3 Benjamin Kosnik 2003-01-17 12:21:00 EST
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

Note You need to log in before you can comment on or make changes to this bug.