This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-fno-default-inline and iostream.o
- To: egcs-bugs at cygnus dot com
- Subject: -fno-default-inline and iostream.o
- From: colin at field dot medicine dot adelaide dot edu dot au
- Date: Mon, 03 Nov 1997 09:16:54 +1100
- Reply-To: colin at field dot medicine dot adelaide dot edu dot au
With -fno-default-inline, iostream.h's
class _IO_ostream_withassign::_IO_ostream_withassign& operator=
(_IO_ostream_withassign& rhs)
{ return operator= (static_cast<ostream&> (rhs)); }
is instantiated twice, once in the caller, and once in libstdc++.a(iostream.o),
leading to multiple definitions at link-time.
The same occurs for several other methods.
Colin.