Compiler crash
Richard Carlsson
richardc@REDACTED
Mon Mar 17 11:14:06 CET 2003
On Mon, 17 Mar 2003, Bengt Kleberg wrote:
> > From: Chandrashekhar Mullaparthi <Chandrashekhar.Mullaparthi@REDACTED>
> >
> > Got a compiler crash compiling this syntactically wrong code. Using R9B.
> >
> > test() ->
> > .io.format("abcd~n", []). % This should really be .io:format
>
> this is a known bug. unfortunatly i can not remember what answer i got
> (about when it would be fixed) when i reported it.
Here's a patch. Apparently the fix did not make it into R9B-1 for some
reason, but it definitely will be in R9C.
file: lib/compiler/src/sys_pre_expand.erl
=========================================
403a404,405
> expr({call,Line,{record_field,_,_,_}=M,As0}, Vs, St0) ->
> expr({call,Line,expand_package(M, St0),As0}, Vs, St0);
/Richard
Richard Carlsson (richardc@REDACTED) (This space intentionally left blank.)
E-mail: Richard.Carlsson@REDACTED WWW: http://user.it.uu.se/~richardc/
"Having users is like optimization: the wise course is to delay it."
-- Paul Graham
More information about the erlang-questions
mailing list