[Bug tree-optimization/24141] [4.1 regression] VRP ICE in compare_name_with_value, at tree-vrp.c:2965
belyshev at depni dot sinp dot msu dot ru
gcc-bugzilla@gcc.gnu.org
Fri Sep 30 11:55:00 GMT 2005
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-09-30 11:55 -------
// testcase where we produce wrong code even with checking enabled
// (taken from bug 24142)
void abort (void);
int f (int a, int b)
{
if (a == 1)
a = 0;
if (b == 0)
a = 1;
if (a != 0)
return 0;
return 1;
}
int main (void)
{
if (f (1, 1) != 1)
abort ();
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24141
More information about the Gcc-bugs
mailing list