This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18040] [4.0 Regression] ICE in for_each_index, at tree-ssa-loop-im.c:178
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Oct 2004 16:30:00 -0000
- Subject: [Bug tree-optimization/18040] [4.0 Regression] ICE in for_each_index, at tree-ssa-loop-im.c:178
- References: <20041017123619.18040.aj@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-17 16:29 -------
Here is something which is slightly smaller:
int PyObject_IsTrue();
struct object_base
{
void ptr() const;
};
struct object : public object_base
{
typedef void (object::*bool_type)() const;
inline operator bool_type() const { return PyObject_IsTrue() ? &object_base::ptr : 0; }
};
void f();
void g (void)
{
for (unsigned n = 0; n < 100; ++n)
{
object kv;
if (kv)
f();
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18040