This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22434] New: ICE in simplify_{,gen_}subreg
- From: "jakub at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2005 10:29:20 -0000
- Subject: [Bug c++/22434] New: ICE in simplify_{,gen_}subreg
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
#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