[Bug tree-optimization/66178] Another label as values ICE

2015-05-16 Thread SztfG at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66178

--- Comment #1 from SztfG at yandex dot ru ---
better test case

int test(void)
{
static int a =  ((char *)l2-(char *)l3)+((char *)l1-(char *)l2);
l1:
l2:
l3:
return a;
}


[Bug tree-optimization/66178] Another label as values ICE

2015-05-16 Thread SztfG at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66178

--- Comment #2 from SztfG at yandex dot ru ---
another testcase:

int test(void)
{
static int a =  ((char *)l1-(char *)l2)-1;
l1:
l2:
return a;
}