PR tree-optimization/45732
* gcc.dg/torture/pr45732.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165120
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-10-07 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/45732
+ * gcc.dg/torture/pr45732.c: New testcase.
+
2010-10-07 Iain Sandoe <iains@gcc.gnu.org>
* objc.dg/foreach-1.m: Adjust for -fnext-runtime compatibility.
--- /dev/null
+/* { dg-do compile } */
+
+typedef char chars[5];
+const chars bad_chars[] = { "" };
+
+int foo ()
+{
+ const chars *c = bad_chars;
+ return c[0][0];
+}