<p dir="auto">Just a couple of (seeming) bugs I ran into doing some Arbitrary-precision range stuff on rosettacode:<br>
System: Windows 8<br>
Julia: Latest Windows Binary v1.2 from March 8</p>
<ul dir="auto">
<li>Int128 issues: related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5186772" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/959" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/959/hovercard" href="https://github.com/JuliaLang/julia/issues/959">#959</a> ?</li>
</ul>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; typemax(Int128)
00000000004294967295

julia&gt; [int128(2)^i-1 for i = Base.PRIMES[2:20]]
19-element Int128 Array:
                    7
                   31
                  127
                 2047
                 8191
               131071
               524287
              8388607
            536870911
           2147483647
         004294967295
        0004294967295
        0004294967295
      000004294967295
     0000004294967295
   000000004294967295
  0000000004294967295
 00000000004294967295
 00000000004294967295"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">typemax</span>(Int128)
<span class="pl-c1">00000000004294967295</span>

julia<span class="pl-k">&gt;</span> [<span class="pl-c1">int128</span>(<span class="pl-c1">2</span>)<span class="pl-k">^</span>i<span class="pl-k">-</span><span class="pl-c1">1</span> <span class="pl-k">for</span> i <span class="pl-k">=</span> Base<span class="pl-k">.</span>PRIMES[<span class="pl-c1">2</span><span class="pl-k">:</span><span class="pl-c1">20</span>]]
<span class="pl-c1">19</span><span class="pl-k">-</span>element Int128 Array<span class="pl-k">:</span>
                    <span class="pl-c1">7</span>
                   <span class="pl-c1">31</span>
                  <span class="pl-c1">127</span>
                 <span class="pl-c1">2047</span>
                 <span class="pl-c1">8191</span>
               <span class="pl-c1">131071</span>
               <span class="pl-c1">524287</span>
              <span class="pl-c1">8388607</span>
            <span class="pl-c1">536870911</span>
           <span class="pl-c1">2147483647</span>
         <span class="pl-c1">004294967295</span>
        <span class="pl-c1">0004294967295</span>
        <span class="pl-c1">0004294967295</span>
      <span class="pl-c1">000004294967295</span>
     <span class="pl-c1">0000004294967295</span>
   <span class="pl-c1">000000004294967295</span>
  <span class="pl-c1">0000000004294967295</span>
 <span class="pl-c1">00000000004294967295</span>
 <span class="pl-c1">00000000004294967295</span></pre></div>
<p dir="auto">Is 4294967295 the actual typemax? The leading zeros are at least weird.</p>
<p dir="auto">I get the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; int128(1)
UNREACHABLE executed!
Stack dump:
0.  Running pass 'X86 DAG-&gt;DAG Instruction Selection' on function '@dec'
Aborted"><pre class="notranslate"><code class="notranslate">julia&gt; int128(1)
UNREACHABLE executed!
Stack dump:
0.  Running pass 'X86 DAG-&gt;DAG Instruction Selection' on function '@dec'
Aborted
</code></pre></div>
<p dir="auto">Might be an issue in LLVM, or we might be doing something wrong. <code class="notranslate">Complex128</code> works, so wide integer arithmetic is the problem.</p>