[erlang-bugs] Internal error in v3_life when mixing := and =>

Anthony Ramine n.oxyde@REDACTED
Tue Mar 4 22:04:22 CET 2014


https://github.com/erlang/otp/pull/266

-- 
Anthony Ramine

Le 4 mars 2014 à 09:32, Ulf Norell <ulf.norell@REDACTED> a écrit :

> -module(bug).
> f(M, X) -> M#{a := ok, b => {X}}.
> 
> $ erl
> Erlang/OTP 17 [RELEASE CANDIDATE 2] [erts-6.0] [source-a74e66a] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
> 
> Eshell V6.0  (abort with ^G)
> 1> c(bug). 
> Function: f/2
> bug.erl: internal error in v3_life;
> crash reason: {case_clause,
>     {'EXIT',
>         {function_clause,
>             [{v3_life,vdb_store_new,
>                  [ker0,4,4,[{ker0,2,3},{ker1,3,3}]],
>                  [{file,"v3_life.erl"},{line,501}]},
>              {v3_life,vdb_store_new,4,[{file,"v3_life.erl"},{line,502}]},
>              {v3_life,vdb_store_new,4,[{file,"v3_life.erl"},{line,502}]},
>              {lists,foldl,3,[{file,"lists.erl"},{line,1261}]},
>              {v3_life,body,3,[{file,"v3_life.erl"},{line,442}]},
>              {v3_life,body,3,[{file,"v3_life.erl"},{line,98}]},
>              {v3_life,match,5,[{file,"v3_life.erl"},{line,280}]},
>              {v3_life,expr,3,[{file,"v3_life.erl"},{line,133}]}]}}}
> 
>   in function  io_lib_pretty:cind_tag_tuple/7 (io_lib_pretty.erl, line 638)
>   in call from io_lib_pretty:cind_element/7 (io_lib_pretty.erl, line 727)
>   in call from io_lib_pretty:cind_list/7 (io_lib_pretty.erl, line 697)
>   in call from io_lib_pretty:cind_element/7 (io_lib_pretty.erl, line 727)
>   in call from io_lib_pretty:cind_list/7 (io_lib_pretty.erl, line 697)
>   in call from io_lib_pretty:cind_element/7 (io_lib_pretty.erl, line 727)
>   in call from io_lib_pretty:cind_list/7 (io_lib_pretty.erl, line 697)
>   in call from io_lib_pretty:cind_element/7 (io_lib_pretty.erl, line 727)
> bug.erl:2: Warning: function f/2 is unused
> error
> 
> / Ulf
> 
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs




More information about the erlang-bugs mailing list