#include <ostream>
#include <string>
#include <vector>

std::string bar (unsigned int x);

template <class T>
std::ostream & baz (std::ostream &os, const T &v, bool lit)
{
  typename T::const_iterator i = v.begin ();
  os << (lit ? bar (*i) : *i);
  return os;
}

void foo (std::ostream &os, const std::vector<int> &v)
{
  baz (os, v, false);
}

ICEs in 3.4.4, 4.0.1 and HEAD, trying to generate a BLKmode SUBREG.

-- 
           Summary: ICE in simplify_{,gen_}subreg
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22434

Reply via email to