From mboxrd@z Thu Jan 1 00:00:00 1970 From: bkoz@gcc.gnu.org To: bkoz@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: libstdc++/2832 Date: Tue, 22 May 2001 17:36:00 -0000 Message-id: <20010523003600.23546.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00650.html List-Id: The following reply was made to PR libstdc++/2832; it has been noted by GNATS. From: bkoz@gcc.gnu.org To: bkoz@gcc.gnu.org, gcc-gnats@gcc.gnu.org, kenny.simpson@gs.com, nobody@gcc.gnu.org, theonetruekenny@yahoo.com Cc: Subject: Re: libstdc++/2832 Date: 23 May 2001 00:27:50 -0000 Synopsis: rdbuf methods incorrect Responsible-Changed-From-To: unassigned->bkoz Responsible-Changed-By: bkoz Responsible-Changed-When: Tue May 22 17:27:50 2001 Responsible-Changed-Why: Responsible State-Changed-From-To: open->analyzed State-Changed-By: bkoz State-Changed-When: Tue May 22 17:27:50 2001 State-Changed-Why: This seems to be two bugs: 1) pointers returned by rdbuf() not the same 2) [io]stringstream/[io]fstream dtors delete streambuf object. I don't see where, in the standard #1 is guaranteed. Perhaps you can point this out to me/ I do agree that #2 is a problem, and am working on a fix now. thanks, benjamin http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2832&database=gcc