This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

-fno-default-inline and iostream.o


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]