<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    It doesn't loop when I try it.<br>
    <br>
    <div class="moz-cite-prefix">On 8/6/2012 6:38 AM, Konstantin Staver
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEqCpNDim7ON4C7sVgasz63dyvSjzTjFpA3d9R=iesftyP6YFA@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi to all!

I want to build dmd2 (git HEAD) with druntime and phobos on OpenBSD
5.1. I failed to build druntime. I found problem with D compiler. D
compiler loops when it tries to optimize code. For example, it doesn't
work:

//// my_mod.d

module my_mod;

void MyFunc()
{
    int[2] arr;
    for (size_t i =0; i < 2; ++i) {
        arr[i] = 1;
    }
}

///// end of my_mod.d

I attached gdb output. dmd loops with "while" of doptelem.

Give me a tip about solution of the problem, please. How to debug it correctly?

Thanks
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dmd-internals mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dmd-internals@puremagic.com">dmd-internals@puremagic.com</a>
<a class="moz-txt-link-freetext" href="http://lists.puremagic.com/mailman/listinfo/dmd-internals">http://lists.puremagic.com/mailman/listinfo/dmd-internals</a></pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>