Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 17957 invoked from network); 5 Oct 2006 19:48:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2006 19:48:46 -0000 Received: (qmail 67417 invoked by uid 500); 5 Oct 2006 19:48:45 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 67392 invoked by uid 500); 5 Oct 2006 19:48:45 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 67380 invoked by uid 99); 5 Oct 2006 19:48:45 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Oct 2006 12:48:45 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:33741] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 00/39-04543-B9165254 for ; Thu, 05 Oct 2006 12:48:43 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5F4367142D1 for ; Thu, 5 Oct 2006 12:48:23 -0700 (PDT) Message-ID: <2808458.1160077703372.JavaMail.root@brutus> Date: Thu, 5 Oct 2006 12:48:23 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Created: (STDCXX-295) [LWG issue 453] basic_stringbuf::seekoff need not always fail for an empty stream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [LWG issue 453] basic_stringbuf::seekoff need not always fail for an empty stream --------------------------------------------------------------------------------- Key: STDCXX-295 URL: http://issues.apache.org/jira/browse/STDCXX-295 Project: C++ Standard Library Issue Type: Bug Components: 27. Input/Output Affects Versions: 4.1.2, 4.1.3 Environment: all Reporter: Martin Sebor According to DR 453, the program below should run successfully to completion: $ cat u.cpp && make u && ./u #include #include int main() { std::istringstream in; std::ostringstream out; std::stringstream inout; // DR453: // http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#453 // // changes 27.7.1.3, p10 (seekoff, called by tellg() and tellp()) // to read: // // For a sequence to be positioned, if its next pointer (either // gptr() or pptr()) is a null pointer and the new offset newoff // is nonzero, the positioning operation fails. assert (0 == in.tellg ()); assert (0 == out.tellp ()); assert (0 == inout.tellg ()); assert (0 == inout.tellp ()); } gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/gcc-4.1.0-11s/include -I/build/sebor/dev/stdlib/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long u.cpp gcc u.o -o u -L/build/sebor/gcc-4.1.0-11s/lib -lstd11s -lsupc++ -lm Assertion failed: 0 == in.tellg (), file u.cpp, line 20 Abort (core dumped) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira