[erlang-bugs] Strange compiler crash with defines

Gunilla Arendt gunilla@REDACTED
Fri Oct 27 10:14:23 CEST 2006


Hi,

Thanks for the bug report. The error has been fixed in R11B-2.

Regards,
Gunilla, Erlang/OTP team

Daniel Luna wrote:
> 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




More information about the erlang-bugs mailing list