This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/25719] ostringstream::str().c_str() returns pointer to unallocated memory
- From: "lawless at spamcop dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2006 16:29:02 -0000
- Subject: [Bug libstdc++/25719] ostringstream::str().c_str() returns pointer to unallocated memory
- References: <bug-25719-7638@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from lawless at spamcop dot net 2006-01-09 16:29 -------
Never mind. Your are correct. Got bit by the temporary object.
I'd turn that language feature off if I could.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25719