From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32256 invoked by alias); 15 Mar 2003 10:36:01 -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 32233 invoked by uid 71); 15 Mar 2003 10:36:01 -0000 Resent-Date: 15 Mar 2003 10:36:01 -0000 Resent-Message-ID: <20030315103601.32231.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 23296 invoked by uid 48); 15 Mar 2003 10:27:36 -0000 Message-Id: <20030315102736.23295.qmail@sources.redhat.com> Date: Sat, 15 Mar 2003 10:36: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++/10093: Regression: Setting failbit in exceptions doesn't work X-SW-Source: 2003-03/txt/msg00966.txt.bz2 List-Id: >Number: 10093 >Category: libstdc++ >Synopsis: Regression: Setting failbit in exceptions doesn't work >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat Mar 15 10:36:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: peturr02@ru.is >Release: gcc version 3.3 20030310 (prerelease) >Organization: >Environment: Red Hat Linux 8.0 >Description: Setting ios_base::failbit in basic_ios::exceptions does not cause basic_istream::operator>>(int&) to throw an exception. This appears to have been caused by the recent patch for PR libstdc++/9561. >How-To-Repeat: See attachment. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="exceptionsbug2.cc" Content-Disposition: inline; filename="exceptionsbug2.cc" #include #undef NDEBUG #include int main() { using namespace std; istringstream stream("whatever"); stream.exceptions(ios::failbit); try { int i; stream >> i; assert(false); } catch (ios::failure&) { } return 0; }