public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: bkoz@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, paolo@gcc.gnu.org,
	ron@vaniwaarden.org, vaniwaar@ca.metsci.com
Subject: Re: libstdc++/5292: Assumes streambuf::overflow returns character put
Date: Tue, 02 Apr 2002 18:29:00 -0000	[thread overview]
Message-ID: <20020403022958.22406.qmail@sources.redhat.com> (raw)

Synopsis: Assumes streambuf::overflow returns character put

State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Tue Apr  2 18:29:57 2002
State-Changed-Why:
    This is not a bug. 
    27.5.2.2.5 - Put area [lib.streambuf.pub.put]
    streambuf::sputc
    
    returns: 
    if no write, overflow(traits::to_int_type(c))
    else traits::to_int_type(c)
    
    You'll notice that the libstdc++-v3 implementation does this.
    
    27.5.2.4.5 - Put area [lib.streambuf.virt.put]
    overflow always returns c on success, unless c == EOF, in which it
    returns not_eof().
    
    Overflow never returns EOF on success, so your change is not
    necessary, and indeed, would be non-conforming.
    
    Furthermore, your testcase appears to work with current gcc-3.1 sources.

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


             reply	other threads:[~2002-04-03  2:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-02 18:29 bkoz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-01-18  1:26 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=20020403022958.22406.qmail@sources.redhat.com \
    --to=bkoz@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=paolo@gcc.gnu.org \
    --cc=ron@vaniwaarden.org \
    --cc=vaniwaar@ca.metsci.com \
    /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: link
Be 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).