libstdc++/3114: DR 129: ostream::seekp() does not report an error
theonetruekenny@yahoo.com
theonetruekenny@yahoo.com
Sun Jun 10 23:06:00 GMT 2001
>Number: 3114
>Category: libstdc++
>Synopsis: DR 129: ostream::seekp() does not report an error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 10 23:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: theonetruekenny@yahoo.com
>Release: cvs 20010610
>Organization:
>Environment:
source
>Description:
see:
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-defects.html#129
>How-To-Repeat:
look at include/bits/ostream.tcc line 409, notice that no error reporting is done.
>Fix:
If the call to pubseekpos returns pos_type(off_type(-1)), call
this->setstate(ios_base::badbit).
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list