[erlang-bugs] strange warning from the compiler

Torbjorn Tornkvist tobbe@REDACTED
Mon Sep 17 08:36:40 CEST 2007


Bengt Kleberg wrote:
> greetings,
> 
> i think this bug report needs an erlang version since the code compiles 
> without problem on my system.

Yes, how stupid of me not to give that info.
I was using R11B-2, so if it is fixed in R11B-5 then all is fine.

--Tobbe


> 
> Erlang (BEAM) emulator version 5.5.5 [async-threads:0] [hipe] 
> [kernel-poll:false]
> 
> SunOS ws67042 5.8 Generic_117350-39 sun4u sparc SUNW,Sun-Blade-1500
> 
> 
> bengt
> Those were the days...
>     EPO guidelines 1978: "If the contribution to the known art resides
>     solely in a computer program then the subject matter is not
>     patentable in whatever manner it may be presented in the claims."
> 
> 
> On 2007-09-14 16:20, Torbjorn Tornkvist wrote:
>> Compiling the following code:
>> -----------------------------------
>> -module(aaa).
>> -export([a/0]).
>>
>> -record(hello, {a,b}).
>>
>> a() ->
>>     (#hello{})#hello.a.
>> ------------------------------------
>>
>> Gives me:
>>
>> erlc aaa.erl
>> ./aaa.erl:7: Warning: this clause cannot match because a previous clause
>> at line 7 always matches
>>
>>
>> Cheers, Tobbe
>>
>> _______________________________________________
>> erlang-bugs mailing list
>> erlang-bugs@REDACTED
>> http://www.erlang.org/mailman/listinfo/erlang-bugs
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-bugs
> 




More information about the erlang-bugs mailing list