Properly handle redundant boolean clauses in sys_core_fold #280

Merged
merged 1 commit into from Mar 14, 2014

Projects

None yet

3 participants

@nox
nox commented Mar 8, 2014

Boolean case expressions with redundant clauses could make the compiler
crash:

case X == 0 of
    false -> no;
    false -> no;
    true -> yes
end.

@UlfNorell

@nox nox Properly handle redundant boolean clauses in sys_core_fold
Boolean case expressions with redundant clauses could make the compiler
crash:

    case X == 0 of
        false -> no;
        false -> no;
        true -> yes
    end.

Reported-by: Ulf Norell
4777f33
@bjorng

Thanks! Included in our daily builds.

@bjorng bjorng closed this Mar 13, 2014
@nox

@bjorng Why did you close this?

@nox

Probably hit "Comment & close", am I right? :)

@bjorng bjorng reopened this Mar 13, 2014
@proxyles proxyles merged commit 4777f33 into erlang:master Mar 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment