[erlang-bugs] strange warning from the compiler

Bengt Kleberg bengt.kleberg@REDACTED
Mon Sep 17 07:54:05 CEST 2007


greetings,

i think this bug report needs an erlang version since the code compiles 
without problem on my system.

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



More information about the erlang-bugs mailing list