piler.
--
Summary: ostringstream::str().c_str() returns pointer to
unallocated memory
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu do
--- Comment #1 from lawless at spamcop dot net 2006-01-09 05:39 ---
Created an attachment (id=10597)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10597&action=view)
test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25719
--- 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.
--- 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
--- Comment #4 from lawless at spamcop dot net 2006-03-10 23:36 ---
This bug is not a dupliate of bug 19664. I just applied
'gcc-push-pop-visibility.patch' to gcc 4.0.2 on 'x86_64'
and the problem is still there:
/usr/bin/ld: .shobj/Logging_Strategy.o: relocation R
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lawless at spamcop dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
--- Additional Comments From lawless at spamcop dot net 2005-04-21 06:09
---
Created an attachment (id=8696)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8696&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21142
--- Additional Comments From lawless at spamcop dot net 2005-04-21 20:25
---
STUPID!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21142