http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47252
Summary: GCC Segfaults when boost/range.hpp is included and deduced parameter is a initializer_list Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: patrick.a.mo...@gmail.com For an unknown reason, gcc-4.5.1 as shipped by Ubuntu 11.04 will segfault when asked to deduce the template parameter of a templated constructor from an initializer_list if <boost/range.hpp> (version 1.40 as shipped by Ubuntu 11.04) has been previously included. The segfault goes away if the include is omitted. An attached file holds the preprocessed input. The original is below: -------------- class Scope { public: template<typename StateSeq> Scope(StateSeq const &); }; template<typename StateSeq> Scope::Scope(StateSeq const & seq) {} #include <boost/range.hpp> int main() { Scope body({ 3 }); }