This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47252] New: GCC Segfaults when boost/range.hpp is included and deduced parameter is a initializer_list


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 });
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]