<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - wrong code bug"
   href="https://llvm.org/bugs/show_bug.cgi?id=27712">27712</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>wrong code bug
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>regehr@cs.utah.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Sorry for the sucky test case, this is the best C-Reduce could do...

Johns-MacBook-Pro-2:reduce_wrong_719369 regehr$ clang -O0 small.c -w ; ./a.out 
2
Johns-MacBook-Pro-2:reduce_wrong_719369 regehr$ gcc -O small.c -w ; ./a.out 
2
Johns-MacBook-Pro-2:reduce_wrong_719369 regehr$ clang -O small.c -w ; ./a.out 
0
Johns-MacBook-Pro-2:reduce_wrong_719369 regehr$ cat small.c
int printf(const char *, ...);
int a;
int b[3];
short c;
char d;
int main() {
  {
    char e;
    unsigned f;
    b[2] = d = 137;
    b[0] = d;
  lbl_1154:
    for (;; a++)
      if (b[a])
        break;
    e = b[0] < 0 ?: 2 << b[0];
    f = e;
    c = f < 2;
    if (c) {
      b[0] = 0;
      goto lbl_1154;
    }
  }
  printf("%d\n", a);
  return 0;
}
Johns-MacBook-Pro-2:reduce_wrong_719369 regehr$ clang -v
clang version 3.9.0 (trunk 269180)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Users/regehr/llvm-install/bin</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>