$OpenBSD: patch-lib_compiler_src_v3_codegen_erl,v 1.2 2008/02/14 22:44:36 sthen Exp $ Fix a compiler bug, http://thread.gmane.org/gmane.comp.lang.erlang.general/26285 --- lib/compiler/src/v3_codegen.erl.orig Tue Feb 5 14:37:35 2008 +++ lib/compiler/src/v3_codegen.erl Thu Feb 7 16:21:25 2008 @@ -1481,6 +1481,8 @@ cg_binary_size_1([], Bits, Acc) -> Sizes = filter(fun({_,{integer,0}}) -> false; (_) -> true end, Sizes0), case Sizes of + [] -> + {bs_init2,[{integer,0}]}; [{1,_}|_] -> {bs_init_bits,cg_binary_bytes_to_bits(Sizes, [])}; [{8,_}|_] ->