[erlang-questions] internal error in lint_module

Hans Bolinder <>
Wed Aug 21 08:55:36 CEST 2013


Hi,

[Mikhail Sobolev on Monday, 31 December 2012:]

> A minimal example I managed to come out with is:
>
> --- cut here ---
> -module(p2).
>
> -export([
>     manifest/2
> ]).
>
> manifest(Module, Name) ->
>     fun Module:Nine/1.
> --- cut here ---
> 
> While compiling with erlc, the following error message is produced:
> 
> --- cut here ---
> p2.erl:none: internal error in lint_module;
> crash reason: {{case_clause,{location,8}},
>                [{erl_lint,loc,1,[{file,"erl_lint.erl"},{line,598}]},
>                 {erl_lint,add_error,3,[{file,"erl_lint.erl"},{line,588}]},
>                 {erl_lint,expr_var,4,[{file,"erl_lint.erl"},{line,3155}]},
>                 {erl_lint,'-expr_list/3-fun-0-',3,
>                           [{file,"erl_lint.erl"},{line,2289}]},
>                 {lists,foldl,3,[{file,"lists.erl"},{line,1197}]},
>                 {erl_lint,expr,3,[{file,"erl_lint.erl"},{line,2151}]},
>                 {erl_lint,exprs,3,[{file,"erl_lint.erl"},{line,2047}]},
>                 {erl_lint,clause,3,[{file,"erl_lint.erl"},{line,1399}]}]}
> --- cut here ---
> 
> If the typo -- Nine -- is fixed, everything compiles just fine.

Thanks for the bug report and sorry for the long delay. A fix should
appear on the 'maint' branch soon.

Best regards,

Hans Bolinder, Erlang/OTP team, Ericsson



More information about the erlang-questions mailing list