This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/3114: DR 129: ostream::seekp() does not report an error
- To: gcc-gnats at gcc dot gnu dot org
- Subject: libstdc++/3114: DR 129: ostream::seekp() does not report an error
- From: theonetruekenny at yahoo dot com
- Date: 11 Jun 2001 06:04:26 -0000
- Cc: kenny dot simpson at gs dot com
- Reply-To: theonetruekenny at yahoo dot com
>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: