This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7708: g++ -O inserts definition of std::string::replace in library module
- From: bangerth at dealii dot org
- To: Castalia at azstarnet dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 20 Dec 2002 02:19:53 -0000
- Subject: Re: c++/7708: g++ -O inserts definition of std::string::replace in library module
- Reply-to: bangerth at dealii dot org, Castalia at azstarnet dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ -O inserts definition of std::string::replace in library module
State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Thu Dec 19 18:19:52 2002
State-Changed-Why:
I tried your program with gcc3.2, but on x86 linux. I can
confirm that the mentioned symbols are present in the
object file. However, they are weak:
00000000 W std::string& std::string::_M_replace<....
Weak symbols means: they can be in multiple object files,
and one of these copies is picked at link time.
Could you possibly check whether the problem still exists
on your platform with gcc3.2.1?
Thanks
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7708