https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70996
--- Comment #1 from Alexander <magum1977 at gmail dot com> --- Created attachment 38435 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38435&action=edit actually only this src leads inifinite compilation. src before finished with error after 5 minutes actually only this src leads inifinite compilation. src before finished with error after 5 minutes error (which occured after 5 mins): g++ -pipe -c -msse2 -m64 -MD -Wno-trigraphs -Wno-multichar -Wformat -Wno-format-extra-args -ffunction-sections -fdata-sections -fno-omit-frame-pointer -ffast-math -ffinite-math-only -minline-all-stringops -std=c++98 -fconserve-space -Wno-invalid-offsetof -I /usr/include -g -fstack-protector -fexceptions -Wreturn-type -Werror -pthread -o message_port.o ../../prog/3rdPartyLibs/mongo-cxx-driver/mongo/util/net/message_port_test.cpp ../../prog/3rdPartyLibs/mongo-cxx-driver/mongo/util/net/message_port_test.cpp: In instantiation of 'Nullstream& Nullstream::operator<<(T*) [with T = std::ios_base&(std::ios_base&)]': ../../prog/3rdPartyLibs/mongo-cxx-driver/mongo/util/net/message_port_test.cpp:46:50: required from here ../../prog/3rdPartyLibs/mongo-cxx-driver/mongo/util/net/message_port_test.cpp:23:32: error: invalid static_cast from type 'std::ios_base& (*)(std::ios_base&)' to type 'void*' return operator<<( static_cast<void*>( t ) );