public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Lennox <lennox@cs.columbia.edu> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: libstdc++/8071: basic_ostream::operator<<(streambuf*) loops forever if streambuf::underflow() leaves gptr() NULL Date: Fri, 27 Sep 2002 09:16:00 -0000 [thread overview] Message-ID: <20020927161602.478.qmail@sources.redhat.com> (raw) The following reply was made to PR libstdc++/8071; it has been noted by GNATS. From: Jonathan Lennox <lennox@cs.columbia.edu> To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: libstdc++/8071: basic_ostream::operator<<(streambuf*) loops forever if streambuf::underflow() leaves gptr() NULL Date: Fri, 27 Sep 2002 12:10:26 -0400 --prVVYBvZNE Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Here is the additional code, which uses the header file previously attached. --prVVYBvZNE Content-Type: text/plain Content-Disposition: inline; filename="test-syncstream.cxx" Content-Transfer-Encoding: 7bit #include "syncstream.h" using namespace std; int main(int argc, char *argv[]) { if (argc < 2) { cerr << "Usage: " << argv[0] << " [file]" << endl; exit(2); } FILE* c_file = fopen(argv[1], "r"); if (c_file == NULL) { perror(argv[1]); exit(1); } isyncstream cxx_file(c_file); cout << cxx_file.rdbuf(); exit(0); } --prVVYBvZNE--
next reply other threads:[~2002-09-27 16:16 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-09-27 9:16 Jonathan Lennox [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-11-06 8:47 bkoz 2002-10-20 9:32 bkoz 2002-09-27 8:56 lennox
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=20020927161602.478.qmail@sources.redhat.com \ --to=lennox@cs.columbia.edu \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).