Hi!

This PR got fixed by a fix for another PR, but I've committed
the testcase to the testsuite for better coverage.

2014-11-18  Jakub Jelinek  <ja...@redhat.com>

        PR tree-optimization/61042
        * gcc.c-torture/compile/pr61042.c: New test.

--- gcc/testsuite/gcc.c-torture/compile/pr61042.c.jj    2014-11-18 
14:23:56.004671762 +0100
+++ gcc/testsuite/gcc.c-torture/compile/pr61042.c       2014-11-18 
14:23:35.000000000 +0100
@@ -0,0 +1,10 @@
+/* PR tree-optimization/61042 */
+
+int a, b, c[1], d, f;
+
+void
+foo ()
+{
+  for (; b; b++)
+    c[0] = c[f] && (d = a);
+}

        Jakub

Reply via email to