[Bug c++/24272] strange link error with ACE
--- 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_X86_64_PC32 against `std::basic_ofstreamchar, std::char_traitschar ::basic_ofstream(char const*, std::_Ios_Openmode)@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC BTW, had to had-edit the patch for three files: libstdc++-v3/include/tr1/array libstdc++-v3/include/debug/string libstdc++-v3/include/std/std_sstream.h -- lawless at spamcop dot net changed: What|Removed |Added CC||lawless at spamcop dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24272
[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
[Bug libstdc++/25719] ostringstream::str().c_str() returns pointer to unallocated memory
--- 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
[Bug libstdc++/25719] New: ostringstream::str().c_str() returns pointer to unallocated memory
The 'c_str()' method of the STL 'basic_string' class template returns a pointer to free memory when called against a string returned by the 'str()' method of the 'basic_ostringstream' class template. ISO/IEC 14882 [21.3.6] indicates pointers returned by 'c_str()' should be good until the next non-const member of the string object is called. This behavior is confirmed by both 'purify' and 'mudflap'. The same test case runs clean with 'purify' on Solaris 8 with the Sun Studio 5.4 compiler. -- 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 dot org ReportedBy: lawless at spamcop dot net GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25719
[Bug libstdc++/25719] ostringstream::str().c_str() returns pointer to unallocated memory
--- 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=10597action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25719
[Bug c++/21142] New: inherited class member not visible in complex templated hierarchy
Bug appears in g++ 3.4, 4.0, probably 4.1. Does not appear in g++ 3.2, 3.3, icc 8.0, 8.1, Sun CC 5.4. -- Summary: inherited class member not visible in complex templated hierarchy Product: gcc Version: 4.0.0 Status: UNCONFIRMED 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 GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21142
[Bug c++/21142] inherited class member not visible in complex templated hierarchy
--- 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=8696action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21142
[Bug c++/21142] inherited class member not visible in complex templated hierarchy
--- Additional Comments From lawless at spamcop dot net 2005-04-21 20:25 --- STUPID! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21142