[erlang-bugs] bug in bs_put_integer

Fredrik Svahn fredrik.svahn@REDACTED
Wed Dec 19 23:01:19 CET 2007


Seems similar to the bug reported by Oleg Avdeev on Dec 7, although it does
not seem like the patch provided then solves this problem. Program compiles
with R11B-5 but not with R12B-0.

Problem:
---------

$ erlc test2.erl
test2: function f/1+10:
  Internal consistency check failed - please report this bug.
  Instruction: {bs_put_integer,{f,0},
                               {integer,8},
                               1,
                               {field_flags,[unsigned,big]},
                               {x,0}}
  Error:       {match_context,{x,0}}:


Test program:
--------------
-module(test2).
-export([f/1]).

f(<<"A", H/binary>>) -> <<"B", H>>.


BR /Fredrik Svahn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20071219/241d096b/attachment.htm>


More information about the erlang-bugs mailing list