]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: Make sure bools lose idealness when used with logical operators.
authorDaniel Morsing <daniel.morsing@gmail.com>
Mon, 26 Nov 2012 21:23:13 +0000 (22:23 +0100)
committerDaniel Morsing <daniel.morsing@gmail.com>
Mon, 26 Nov 2012 21:23:13 +0000 (22:23 +0100)
commit5188c0b59cfb9f904ece4ee7e8f69d56ab15fbbd
treef906cacb52f8756b9a18d39ad34043bab82a806f
parent9a61c0412c119f5df05a7c3877985cd1dbc83931
cmd/gc: Make sure bools lose idealness when used with logical operators.

Bools from comparisons can be assigned to all bool types, but this idealness would propagate through logical operators when the result should have been lowered to a non-ideal form.

Fixes #3924.

R=golang-dev, remyoudompheng, r, rsc, mtj
CC=golang-dev
https://golang.org/cl/6855061
src/cmd/gc/typecheck.c
test/fixedbugs/issue3924.go [new file with mode: 0644]