[erlang-bugs] Parameterized module and utf8 pattern compile error

][azar xazar.studio@REDACTED
Mon Jun 6 08:05:35 CEST 2011


Hello.
There is an error when i try to compile parameterized module with utf8.

Example:

-module(test,[Graph]).

-export([test/1]).

test(Input) ->
    <<C/utf8,Rest/binary>> = Input.

Error:

./test.erl:none: internal error in expand_module;
crash reason: {function_clause,
                  [{sys_expand_pmod,bit_types,
                       [[{unit,undefined},unsigned,big]]},
                   {sys_expand_pmod,bit_types,1},
                   {sys_expand_pmod,pattern_grp,2},
                   {sys_expand_pmod,pattern,2},
                   {sys_expand_pmod,expr,2},
                   {sys_expand_pmod,exprs,2},
                   {sys_expand_pmod,clause,2},
                   {sys_expand_pmod,clauses,2}]}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20110606/f825e8a9/attachment.htm>


More information about the erlang-bugs mailing list