This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/25719] ostringstream::str().c_str() returns pointer to unallocated memory



------- Comment #3 from lawless at spamcop dot net  2006-01-09 16:15 -------
The string object in the test case does not die until the
'main' function is exited.  The destructor is not called
before the 'return' statement, which is after the 'printit'
function call.


-- 

lawless at spamcop dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25719



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]