http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53350
Bug #: 53350 Summary: Internal compiler error when compiling boost/smart_ptr/intrusive_ptr.hpp 1.49 Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: rct+...@thompsonclan.org When compiling boost 1.49 on Ubuntu 11.10 wigh GCC version 4.6.1-9ubuntu3, I get an internal compiler error. The error happens when the following command is run in tools/quickbook: "g++" -ftemplate-depth-300 -O3 -finline-functions -Wno-inline -Wall -g -g0 -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_NO_DEPRECATED -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"../.." -c -o "../../bin.v2/tools/quickbook/src/gcc-4.6.1/release/debug-symbols-on/link-static/id_manager.o" "src/id_manager.cpp" The error is: In file included from ../../boost/intrusive_ptr.hpp:16:0, from src/fwd.hpp:15, from src/values.hpp:20, from src/id_manager.hpp:14, from src/id_manager.cpp:9: ../../boost/smart_ptr/intrusive_ptr.hpp: In destructor ‘boost::intrusive_ptr<T>::~intrusive_ptr() [with T = quickbook::file_info]’: ../../boost/smart_ptr/intrusive_ptr.hpp:94:5: internal compiler error: Segmentation fault I was building the boost library by downloading the sources from here: http://packages.ubuntu.com/source/quantal/boost1.49 and using the "debuild" tool to build installable packages. The build will fail at the above command, and the command can then be repeated to consistently produce the error I have attached the preprocessed source of the offending file, boost/smart_ptr/intrusive_ptr.hpp