not very informative compiler error message:

Bengt Kleberg <>
Wed Apr 30 09:12:22 CEST 2003

when compiling the test program below I get the error message:

/home/eleberg/test.erl:none: internal error in expand_module;
crash reason: {function_clause,[{dict,fetch_val,[a_record,[]]},
/home/eleberg/test.erl:5: Warning: function a/1 is unused

i much prefer the error message:

/home/eleberg/test.erl:3: record a_record undefined

which i get with only 1 is_record() (ie, no ''or'' clause in the guard)

-------------- next part --------------

a( B ) when is_record( B, a_record) ->

More information about the erlang-bugs mailing list