R19-rc1: Internal error in beam_type

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

R19-rc1: Internal error in beam_type

Ulf Norell
On R19 rc1 (OTP-19.0-rc1 tag in git) the following module causes an internal error when compiled:



f(pat) ->
  X = case err of
         ok  -> ok;
         err -> external:call(), 0
  case X of
    ok  -> ok;
    err -> err;
    0   -> bad

The error is:

bug.erl: internal error in beam_type;
crash reason: {case_clause,

  in function  compile:'-select_passes/2-anonymous-2-'/2 (compile.erl, line 521)
  in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 306)
  in call from compile:fold_comp/3 (compile.erl, line 332)
  in call from compile:internal_comp/4 (compile.erl, line 316)
  in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 166)

/ Ulf

erlang-bugs mailing list
[hidden email]