compiler bug

Martin Bjorklund <>
Thu Jun 12 08:30:41 CEST 2003


I just found a compiler bug in R8 and R9:

---------------------------------
-module(h).
-compile(export_all).

h() ->
    if true ->
	    1;
            [];
       true ->
	    2
    end.
---------------------------------


1> c(h).
{ok,h}
2> h:h().
1






/martin



More information about the erlang-questions mailing list