From 8409645367822228668
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,a8c910fe3fc23840
X-Google-Attributes: gidf78e5,public
Path: controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: sebormartin@netscape.net (Martin Sebor)
Newsgroups: comp.std.c++
Subject: Re: ios::badbit set when rdstate & exceptions() causes throw ios::failure?
Date: Fri, 21 May 2004 22:37:58 +0000 (UTC)
Organization: http://groups.google.com
Lines: 19
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <a220a90a.0405211349.235fafd7@posting.google.com>
References: <10a7vpetcl4a868@corp.supernews.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: mail2news.demon.co.uk 1085179078 19269 10.0.0.1 (21 May 2004 22:37:58 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Fri, 21 May 2004 22:37:58 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.12)
	id 1BRIeL-00050e-00
	for mail2news@news.news.demon.net; Fri, 21 May 2004 22:37:58 +0000
X-Received: from mulga.cs.mu.OZ.AU (localhost [127.0.0.1]) by mulga.cs.mu.OZ.AU with ESMTP
	id i4LMboPT027735; Sat, 22 May 2004 08:37:50 +1000 (EST)
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i4LMbnHZ027726;
	Sat, 22 May 2004 08:37:49 +1000 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ucar.edu
X-Newsgroups: comp.std.c++
X-NNTP-Posting-Date: Fri, 21 May 2004 21:49:47 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Level: 
X-Spam-Status: No, hits=-3.4 required=5.2 tests=AWL,BAYES_00 autolearn=no 
	version=2.60-mulga_r1
Xref: controlnews3.google.com comp.std.c++:414

..
> Can someone verify that this is correct behavior?

No, it's not correct.

> If so, can someone 
> explain to me why badbit is being set in this case?

Because of a libstdc++ bug. AFAICS, it's fixed in the latest version
of the library that comes with gcc 3.4.

Martin

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



