[erlang-questions] internal error in lint_module

Mikhail Sobolev mikhail.sobolev@REDACTED
Mon Dec 31 03:42:15 CET 2012


Today I encountered a never seen error before :)

I spent about an hour to understand what's wrong and the problem
disappeared after fxing a typo.

A minimal example I managed to come out with is:

--- cut here ---


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}},
--- cut here ---

If the typo -- Nine -- is fixed, everything compiles just fine.

A brief look at the error message and erl_lint:598 suggest that
somehow the 'file' information anticipated in the case clauses is

Information about the erlang used:

Erlang R15B02 (erts-5.9.2) [source] [smp:2:2] [async-threads:0] [hipe]

I'm running an Ubuntu 12.10, and the package is taken from
Debian/experimental (and rebuilt for my environment) :))

I wonder if it's a bug or something else.


More information about the erlang-questions mailing list