R13B01 internal error in v3_codegen

Martin Engström whongo@REDACTED
Tue Jul 21 13:16:26 CEST 2009


Hi! This small list comprehension works fine in R12B-5, but not in R13B01

-module(alphanum).
-export([orgno_alphanum/1]).
orgno_alphanum(OrgNo) ->
   [C || C <- OrgNo, ((C >= $0) andalso (C =< $9))
           orelse  ((C >= $a) andalso (C =< $z))
           orelse  ((C >= $A) andalso (C =< $Z))].

Trying to compile:

mrtin@REDACTED:~$erlc alphanum.erl
Function: '-orgno_alphanum/1-lc$^0/1-0-'/1
./alphanum.erl:none: internal error in v3_codegen;
crash reason: {{case_clause,
                  {'EXIT',
                      {function_clause,
                          [{v3_codegen,longest,
                               [[{0,cor3},{1,ker4},{2,ker3},{3,gbreakvar}],
                                [free,{1,ker4},{2,ker3},{3,gbreakvar}]]},
                           {v3_codegen,sr_merge,2},
                           {v3_codegen,match_cg,5},
                           {v3_codegen,guard_match_cg,6},
                           {v3_codegen,'-cg_list/5-anonymous-0-',3},
                           {v3_codegen,flatmapfoldl,3},
                           {v3_codegen,cg_list,5},
                           {v3_codegen,cg_block,5}]}}},
              [{compile,'-select_passes/2-anonymous-2-',2},
               {compile,'-internal_comp/4-anonymous-1-',2},
               {compile,fold_comp,3},
               {compile,internal_comp,4},
               {compile,internal,3}]}

Erlang version:

mrtin@REDACTED:~$erl
Erlang R13B01 (erts-5.7.2) [source] [64-bit] [smp:4:4] [rq:4]
[async-threads:0] [hipe] [kernel-poll:false]

/Martin Engström


More information about the erlang-bugs mailing list