public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/7213: g++ 3.1: basic_filebuf doesn`t support open mode "a+"
@ 2002-07-05  1:26 johnb
  0 siblings, 0 replies; 2+ messages in thread
From: johnb @ 2002-07-05  1:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7213
>Category:       libstdc++
>Synopsis:       g++ 3.1: basic_filebuf doesn`t support open mode "a+"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 05 01:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     johnb@stl.sarov.ru
>Release:        g++ 3.1
>Organization:
>Environment:
Red Hat Linux release 7.2, g++ 3.1, libc 2.2.4
>Description:
basic_filebuf doesn`t support the open mode "a+. See testcase.
>How-To-Repeat:
Compile testcase by g++ 3.1 and run it. For example:
$g++31 open-mode-a+.cpp -o open-mode-a+.exe
$open-mode-a+.exe
You`ll get the "Failed" message.
>Fix:
Add support of "a+" open mode. Probably this is in the file basic_file_stdio.cc
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="open-mode-a+.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="open-mode-a+.cpp"

I2luY2x1ZGUgPGZzdHJlYW0+CiNpbmNsdWRlIDxpb3N0cmVhbT4KCmludCBtYWluICgpCiB7CiAg
ICAgc3RkOjpiYXNpY19maWxlYnVmPGNoYXI+IGZidWY7CiAgICAgY2hhciB0bltdID0gIm9wZW4t
bW9kZS1hKy5jcHAiOwogICAgIGludCByZXMgPSAwOwogICAgIAogICAgIGZidWYub3Blbih0biwg
c3RkOjppb3NfYmFzZTo6aW4gfCBzdGQ6Omlvc19iYXNlOjpvdXQgfCBzdGQ6Omlvc19iYXNlOjph
cHApOwoKICAgICBpZiAoZmJ1Zi5pc19vcGVuKCkpCiAgICAgICBzdGQ6OmNvdXQgPDwgIlBhc3Nl
ZFxuIjsKICAgICBlbHNlIHsKICAgICAgIHJlcyA9IDE7CiAgICAgICBzdGQ6OmNvdXQgPDwgIkZh
aWxlZFxuIjsKICAgICB9CiAgICAgCiAgcmV0dXJuIHJlczsKIH0K


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libstdc++/7213: g++ 3.1: basic_filebuf doesn`t support open mode "a+"
@ 2002-07-05  4:51 paolo
  0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-07-05  4:51 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, johnb, nobody, paolo

Synopsis: g++ 3.1: basic_filebuf doesn`t support open mode "a+"

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Fri Jul  5 04:51:33 2002
Responsible-Changed-Why:
    Triaged.
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Fri Jul  5 04:51:33 2002
State-Changed-Why:
    Not a bug: open mode in|out|app is *not* allowed, see
    27.8.1.3, Table92 of the ISO standard, or, f.i., Josuttis,
    p.632 for details.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7213


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-05 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-05  1:26 libstdc++/7213: g++ 3.1: basic_filebuf doesn`t support open mode "a+" johnb
2002-07-05  4:51 paolo

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).