[erlang-bugs] Regression on match in 17.0-rc1

Björn Gustavsson bjorn@REDACTED
Tue Feb 4 10:52:17 CET 2014


On Mon, Feb 3, 2014 at 7:34 PM, José Valim
<jose.valim@REDACTED> wrote:
>
> There is a regression in 17.0-rc1. The following code will execute io:format/2 twice:
>
>
> -module(test).
> -export([test/0]).
>
> test() ->
>   X = Y = io:format(<<"foo~n">>),
>   X,
>   Y.


Thanks for the bug report (and thanks Anthony for pointing out the commit).

Here is a correction:

git fetch git@REDACTED:bjorng/otp.git bjorn/compiler/optimizations/OTP-11584

Please try it out. We will run it for a couple of days in our daily builds
before merging it to master.

/Bjorn


-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-bugs mailing list