[erlang-bugs] Strange compiler crash with defines

Daniel Luna <>
Thu Sep 14 10:09:08 CEST 2006


I found this error a couple of years ago, but forgot to send it in.

> cat error.erl
-undef(ASSERT).
-define(ASSERT, ?MODULE).

?ASSERT().

> erlc error.erl

=ERROR REPORT==== 14-Sep-2006::09:49:13 ===
Error in process <0.21.0> with exit value: 
{{case_clause,{'EXIT',{function_clause,[{epp,check_uses,[undefined,[{atom,'MODULE'},{atom,'ASSERT'}],{dict,7,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[],[],[],[[{atom,'MACHINE'}],[{atom,'MODULE'}|undefined],[{atom,'LINE'}],[{atom,'FILE'}]],[],[],[],[],[[{...

./error.erl:none: internal error in parse_module;
[snip]

/Luna
-- 
Daniel Luna                           | Top reasons that I have a beard:
                     |  a) Laziness.
http://www.update.uu.se/~luna/        |  b) I can.
Don't look at my homepage (it stinks).|  c) I can get away with it.



More information about the erlang-bugs mailing list