Cover blows up on parsing binary comprehension
Matthew Sackman
matthew@REDACTED
Fri Dec 11 17:11:19 CET 2009
-module(foo).
-export([f/0, g/1]).
f() ->
cover:start(),
{ok,foo} = cover:compile_module(foo).
g(SeqIds) -> << <<3:2, SeqId:62>> || SeqId <- SeqIds >>.
$ erlc -Wall -v +debug_info foo.erl
$ erl
Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.7.4 (abort with ^G)
1> foo:f().
=ERROR REPORT==== 11-Dec-2009::16:10:15 ===
Error in process <0.35.0> with exit value: {{badmatch,{bin,9,[{bin_element,9,{integer,9,3},{integer,9,2},default},{bin_element,9,{var,9,'SeqId'},{integer,9,62},default}]}},[{cover,munge_expr,2},{cover,munge_body,4},{cover,munge_clauses,4},{cover,munge,4},{cover,transform_2...
** exception exit: {{badmatch,{bin,9,
[{bin_element,9,{integer,9,3},{integer,9,2},default},
{bin_element,9,{var,9,'SeqId'},{integer,9,62},default}]}},
[{cover,munge_expr,2},
{cover,munge_body,4},
{cover,munge_clauses,4},
{cover,munge,4},
{cover,transform_2,5},
{cover,transform,4},
{cover,do_compile_beam,2},
{cover,main_process_loop,1}]}
in function cover:call/1
in call from cover:compile_modules/3
in call from cover:compile_module/2
in call from foo:f/0
More information about the erlang-bugs
mailing list