This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/35400] [4.4 Regression] -Wtype-limits -O2 causes ICE tree check: expected ssa_name, have addr_expr in get_value_range, at tree-vrp.c:469
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2008 18:13:22 -0000
- Subject: [Bug middle-end/35400] [4.4 Regression] -Wtype-limits -O2 causes ICE tree check: expected ssa_name, have addr_expr in get_value_range, at tree-vrp.c:469
- References: <bug-35400-231@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from reichelt at gcc dot gnu dot org 2008-03-28 18:13 -------
Here's a reduced C testcase (fuirther reduced from PR35663):
===============================
struct A
{
struct A *p;
};
int foo(const struct A *q)
{
return q->p == q;
}
void bar(int);
void baz()
{
struct A a;
while (foo(&a))
bar(foo(&a));
}
===============================
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35400