From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7174 invoked by alias); 11 Jul 2002 13:36:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7153 invoked by uid 71); 11 Jul 2002 13:36:01 -0000 Resent-Date: 11 Jul 2002 13:36:01 -0000 Resent-Message-ID: <20020711133601.7152.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, johnb@stl.sarov.ru Received: (qmail 4181 invoked by uid 61); 11 Jul 2002 13:31:12 -0000 Message-Id: <20020711133112.4176.qmail@sources.redhat.com> Date: Thu, 11 Jul 2002 06:36:00 -0000 From: johnb@stl.sarov.ru Reply-To: johnb@stl.sarov.ru To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/7276: strstreambuf (charbuf,N,charbuf) doesn`t allowed to read. X-SW-Source: 2002-07/txt/msg00328.txt.bz2 List-Id: >Number: 7276 >Category: libstdc++ >Synopsis: strstreambuf (charbuf,N,charbuf) doesn`t allowed to read. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Jul 11 06:36:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: johnb@stl.sarov.ru >Release: g++3.1 >Organization: >Environment: RH Linux release 7.2 >Description: I use the constructor strstreambuf (buf,n,buf) for strstreambuf object, but can`t read from it. Write operations passes OK. Only after write operation buffer can be read. This impossibility of reading influence on strstream,istrstream objects which calls such constructor. See the simple testcase. >How-To-Repeat: Compile and run testcase attached with g++ 3.1. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="streambuf.cpp" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="streambuf.cpp" I2luY2x1ZGUgPHN0cnN0cmVhbT4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKI2RlZmluZSBJdAlzdGQ6 OmNoYXJfdHJhaXRzPGNoYXI+CgppbnQgbWFpbihpbnQsIGNoYXIgKltdKQp7CgljaGFyICpidWYg PSBuZXcgY2hhciBbNV07CglzdGQ6OnN0cmNweSAoYnVmLCJhYmNkZWYiKTsKCglzdGQ6OnN0cnN0 cmVhbWJ1ZiBzb21lYnVmIChidWYsNSxidWYpOwoJCglpZiAoc29tZWJ1Zi5zZ2V0YygpID09IEl0 Ojp0b19pbnRfdHlwZSgnYScpKSAKCSAgIHN0ZDo6Y291dCA8PCAiUmVhZGluZyBwYXNzZWRcbiI7 CiAgICAgICAgZWxzZQoJICAgc3RkOjpjb3V0IDw8ICJSZWFkaW5nIGZhaWxlZFxuIjsKCi8qCSAg IAoJc29tZWJ1Zi5zcHV0YygneCcpOyAKCglpZiAoc29tZWJ1Zi5zZ2V0YygpID09IEl0Ojp0b19p bnRfdHlwZSgneCcpKSAKCSAgIHN0ZDo6Y291dCA8PCAiV3JpdGluZyBwYXNzZWQgIVxuIjsKCWVs c2UKCSAgIHN0ZDo6Y291dCA8PCAiV3JpdGluZyBmYWlsZWQgIVxuIjsKCiovCQoKICAgZGVsZXRl KGJ1Zik7CiAgIAogIHJldHVybiAwOwogfQoKCg==