title: Why does this HLSL pixel shader not compile?
body: <p>I'm working on a ray tracing pixel shader and came across a weird error. I wrote the following code solely to generate the error, it's pointless but I can't figure out what's wrong with it.</p>
  <pre><code>float4 main(/*Any input*/) : SV_TARGET
  {
      uint uints[2];
      float4 light[2];
      uints[0] = 0;
      uints[1] = 0;
      uint c = 1;
      [loop] while (c &gt; 0) {
          if (uints[c] == 0)
              light[c - 1] = 0.0f;
          else
              light[c - 1] = 0.0f;
          c--;
          break;
      }
      return light[0];
  }
  </code></pre>
  <p>When compiled with shader model 5_0 (with and without optimizations) I get the following error:</p>
  <pre><code>error MSB6006: &quot;fxc.exe&quot; exited with code -1073741819
  </code></pre>
  <p>Doing seemingly meaningless things to the code, like removing <code>c--;</code>, gets rid of the error. Can anyone figure out what this weird error comes from?</p>