From: Richard Guenther Date: Thu, 7 Oct 2010 15:00:18 +0000 (+0000) Subject: re PR tree-optimization/45732 (ICE: in bit_value_unop, at tree-ssa-ccp.c:1861 at... X-Git-Tag: releases/gcc-4.6.0~3782 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa45f8d7f24c25b6bf8c2f478611f160cc7266f8;p=thirdparty%2Fgcc.git re PR tree-optimization/45732 (ICE: in bit_value_unop, at tree-ssa-ccp.c:1861 at -O1) 2010-10-07 Richard Guenther PR tree-optimization/45732 * gcc.dg/torture/pr45732.c: New testcase. From-SVN: r165120 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2f1f7616b1a3..a38c250f2145 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-10-07 Richard Guenther + + PR tree-optimization/45732 + * gcc.dg/torture/pr45732.c: New testcase. + 2010-10-07 Iain Sandoe * objc.dg/foreach-1.m: Adjust for -fnext-runtime compatibility. diff --git a/gcc/testsuite/gcc.dg/torture/pr45732.c b/gcc/testsuite/gcc.dg/torture/pr45732.c new file mode 100644 index 000000000000..04ceaa279169 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr45732.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ + +typedef char chars[5]; +const chars bad_chars[] = { "" }; + +int foo () +{ + const chars *c = bad_chars; + return c[0][0]; +}