From mboxrd@z Thu Jan 1 00:00:00 1970 From: theonetruekenny@yahoo.com To: gcc-gnats@gcc.gnu.org Cc: kenny.simpson@gs.com Subject: libstdc++/3114: DR 129: ostream::seekp() does not report an error Date: Sun, 10 Jun 2001 23:06:00 -0000 Message-id: <20010611060426.20449.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00392.html List-Id: >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: