This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47252] New: GCC Segfaults when boost/range.hpp is included and deduced parameter is a initializer_list
- From: "patrick.a.moran at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Jan 2011 23:50:39 +0000
- Subject: [Bug c++/47252] New: GCC Segfaults when boost/range.hpp is included and deduced parameter is a initializer_list
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: patrick.a.moran@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 });
}