public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: us@ooc.de To: gcc-gnats@gcc.gnu.org Subject: libstdc++/5297: operator!() const incorrect for fstream class Date: Mon, 07 Jan 2002 05:46:00 -0000 [thread overview] Message-ID: <20020107134141.32083.qmail@sources.redhat.com> (raw) >Number: 5297 >Category: libstdc++ >Synopsis: operator!() const incorrect for fstream class >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Jan 07 05:46:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Uwe Seimet >Release: gcc version 3.0.3 >Organization: >Environment: Linux duplo 2.4.17 #1 SMP Thu Dec 27 09:22:23 MET 2001 i686 unknown >Description: operator!() const does not seem to call fail(), as mandated by the ISO C++ standard, 27.4.4.3. This code fragment: fstream afile(MYNAME, ios::in|ios::out|ios::app); assert(afile); always leads to an assertion, even when the stream could be opened correctly. Looks as if fail() is not called at all, at least operator!() always seems to return false. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-01-07 13:46 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-01-07 5:46 us [this message] 2002-01-07 6:26 Carlo Wood 2002-01-07 6:36 Uwe Seimet 2002-01-07 13:46 paolo 2002-01-08 6:36 Uwe Seimet 2002-01-08 8:16 Paolo Carlini
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020107134141.32083.qmail@sources.redhat.com \ --to=us@ooc.de \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).