From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23963 invoked by alias); 10 Sep 2010 14:40:12 -0000 Received: (qmail 23846 invoked by uid 48); 10 Sep 2010 14:39:59 -0000 Date: Fri, 10 Sep 2010 14:40:00 -0000 Message-ID: <20100910143959.23845.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: "paolo dot carlini at oracle 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/msg01349.txt.bz2 ------- Comment #7 from paolo dot carlini at oracle dot com 2010-09-10 14:39 ------- Then, seekoff would also return a position beyond the buffer, right? Or you want it to return 1 anyway? Actually, I think the standard want us to use width * off for the underlying fseek anyway, not only for off == 0, and this is not what we have been doing. I think there is something seriously different here, beyond the performance issue, which we should ponder much more, after so many years. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628