From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8491 invoked by alias); 24 Feb 2003 09:26:02 -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 8413 invoked by uid 71); 24 Feb 2003 09:26:00 -0000 Resent-Date: 24 Feb 2003 09:26:00 -0000 Resent-Message-ID: <20030224092600.8412.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, peturr02@ru.is Received: (qmail 7282 invoked by uid 48); 24 Feb 2003 09:22:21 -0000 Message-Id: <20030224092221.7281.qmail@sources.redhat.com> Date: Mon, 24 Feb 2003 09:26:00 -0000 From: peturr02@ru.is Reply-To: peturr02@ru.is To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/9827: Regression: ostream::operator<<(int) doesn't report output errors. X-SW-Source: 2003-02/txt/msg01236.txt.bz2 List-Id: >Number: 9827 >Category: libstdc++ >Synopsis: Regression: ostream::operator<<(int) doesn't report output errors. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Feb 24 09:26:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: peturr02@ru.is >Release: gcc version 3.4 20030222 (experimental) >Organization: >Environment: Red Hat Linux 8.0 >Description: ostream::operator<<(int) doesn't change the streams error state if streambuf::overflow returns eof. This works correctly in gcc-3.2.1. >How-To-Repeat: See attachment. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="sputnbug.cc" Content-Disposition: inline; filename="sputnbug.cc" #include #include #undef NDEBUG #include class Buf : public std::streambuf { }; int main() { using namespace std; Buf buf; ostream stream (&buf); stream << 1; assert(!stream.good()); return 0; }