Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 38945 invoked from network); 18 Mar 2008 16:27:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2008 16:27:30 -0000 Received: (qmail 66897 invoked by uid 500); 18 Mar 2008 16:27:21 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 66881 invoked by uid 500); 18 Mar 2008 16:27:21 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 66869 invoked by uid 99); 18 Mar 2008 16:27:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 09:27:21 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 16:26:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BD4BD234C0A5 for ; Tue, 18 Mar 2008 09:25:25 -0700 (PDT) Message-ID: <1379480596.1205857525765.JavaMail.jira@brutus> Date: Tue, 18 Mar 2008 09:25:25 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Updated: (STDCXX-319) [LWG #596] std::filebuf::open(..., ios::app) unexpectedly succeeds MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-319: -------------------------------- Fix Version/s: (was: 4.2.1) 4.3 LWG issue [596|http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#596] is still in Review status. Deferred until the issue has been voted into the Working Paper. > [LWG #596] std::filebuf::open(..., ios::app) unexpectedly succeeds > ------------------------------------------------------------------ > > Key: STDCXX-319 > URL: https://issues.apache.org/jira/browse/STDCXX-319 > Project: C++ Standard Library > Issue Type: Bug > Components: 27. Input/Output > Affects Versions: 4.1.2, 4.1.3 > Environment: all > Reporter: Martin Sebor > Assignee: Martin Sebor > Priority: Trivial > Fix For: 4.3 > > Original Estimate: 2h > Remaining Estimate: 2h > > According to filebuf.members, p2, filebuf::open(const char*, openmode mode) is not some combination of the flags listed in Table 113 the call is supposed to fail. Since ios::app only appears in conjunction with ios::out (and ios::binary|ios::out) the call in the program below should fail. > $ cat t.cpp && make t && ./t > #include > #include > int main () > { > std::filebuf fb; > const std::filebuf* const pfb = fb.open ("dummy", std::ios::app); > assert (0 == pfb); > } > gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/build/sebor/dev/stdlib/include -I/build/sebor/gcc-4.1.0-11s/include -I/build/sebor/dev/stdlib/../rwtest -I/build/sebor/dev/stdlib/../rwtest/include -I/build/sebor/dev/stdlib/tests/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long t.cpp > gcc t.o -o t -L/build/sebor/gcc-4.1.0-11s/rwtest -lrwtest11s -L/build/sebor/gcc-4.1.0-11s/lib -lstd11s -lsupc++ -lm > Assertion failed: 0 == pfb, file t.cpp, line 10 > Abort (core dumped) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.