From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16120 invoked by alias); 10 Sep 2010 19:26:38 -0000 Received: (qmail 16095 invoked by uid 48); 10 Sep 2010 19:26:24 -0000 Date: Fri, 10 Sep 2010 19:26:00 -0000 Message-ID: <20100910192624.16094.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/45628] std::fstream::tellg invalidates I/O buffer In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "potswa at mac dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg01406.txt.bz2 ------- Comment #25 from potswa at mac dot com 2010-09-10 19:26 ------- Created an attachment (id=21769) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21769&action=view) alternative approach. untested I hope this compiles ;v) . But it seems to "color within the lines." Why does your patch call setp/setg to (re?)invalidate the opposite area? And then declares it is neither reading nor writing? Also, -1 return from _M_seek is not handled in seekoff. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628