http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56838
Bug #: 56838 Summary: GCC svn doesn't compile libreoffice 4.0.1.2 Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: mustrum...@gmail.com Created attachment 29802 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29802 preprocessed source code This is the command line x86_64-pc-linux-gnu-g++ -DCPPU_ENV=gcc3 -DENABLE_GRAPHITE -DENABLE_GTK -DGCC -DHAVE_CXX11_PERFECT_FORWARDING -DHAVE_GCC_BUILTIN_ATOMIC -DHAVE_THREADSAFE_STATICS -DLIBO_INTERNAL_ONLY -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DSOLAR_JAVA -DSUPD=400 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -DFORCE_SYSALLOC -DSAL_DLLIMPLEMENTATION -DRTL_OS="Linux" -DRTL_ARCH="X86_64" -DHAVE_GCC_VISIBILITY_FEATURE -fvisibility=hidden -Wall -Wendif-labels -Wextra -fmessage-length=0 -fno-common -pipe -fvisibility-inlines-hidden -DLIBO_MERGELIBS -fPIC -Wshadow -Wsign-promo -Woverloaded-virtual -Wnon-virtual-dtor -std=gnu++0x -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O2 -pipe -c /tmp/libreoffice-4.0.1.2/sal/osl/all/debugbase.cxx -o /tmp/libreoffice-4.0.1.2/workdir/unxlngx6.pro/CxxObject/sal/osl/all/debugbase.o -I/tmp/libreoffice-4.0.1.2/sal/osl/all/ -I/tmp/libreoffice-4.0.1.2/solver/unxlngx6.pro/inc/external -I/tmp/libreoffice-4.0.1.2/solver/unxlngx6.pro/inc -I/tmp/libreoffice-4.0.1.2/solenv/inc -I/opt/icedtea-bin-7.2.3.8/include -I/opt/icedtea-bin-7.2.3.8/include/linux -I/opt/icedtea-bin-7.2.3.8/include/native_threads/include -I/tmp/libreoffice-4.0.1.2/config -I/tmp/libreoffice-4.0.1.2/sal/inc Here is the error: In file included from /usr/include/boost/bind.hpp:22:0, from /tmp/libreoffice-4.0.1.2/sal/osl/all/debugbase.cxx:26: /usr/include/boost/bind/bind.hpp: In instantiation of ‘struct boost::_bi::result_traits<boost::_bi::unspecified, bool (*)(const char*, const rtl::OString&)>’: /usr/include/boost/bind/bind_template.hpp:15:48: required from ‘class boost::_bi::bind_t<boost::_bi::unspecified, bool (*)(const char*, const rtl::OString&), boost::_bi::list2<boost::_bi::value<const char*>, boost::arg<1> > >’ /usr/include/boost/bind/bind.hpp:1480:5: required by substitution of ‘template<class F, class A1, class A2> boost::_bi::bind_t<boost::_bi::unspecified, F, typename boost::_bi::list_av_2<A1, A2>::type> boost::bind(F, A1, A2) [with F = bool (*)(const char*, const rtl::OString&); A1 = const char*; A2 = boost::arg<1>]’ /tmp/libreoffice-4.0.1.2/sal/osl/all/debugbase.cxx:107:60: required from here /usr/include/boost/bind/bind.hpp:69:37: error: ‘bool (*)(const char*, const rtl::OString&)’ is not a class, struct, or union type gcc doesn't select the right function overload for boost::bind. clang compiles this.