]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix spurious type errors in walkselect.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 13 Mar 2014 07:14:05 +0000 (08:14 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Thu, 13 Mar 2014 07:14:05 +0000 (08:14 +0100)
commitfcc10bc0f1bed00e951f26bd32aaeea5d6d691b3
tree35699fdd6995bcde7c4353ce2161ef6d77fc7cee
parent741244e4336f7056c733f68d6aef07bc27349e9d
cmd/gc: fix spurious type errors in walkselect.

The lowering to runtime calls introduces hidden pointers to the
arguments of select clauses. When implicit conversions were
involved it could end up with incompatible pointers. Since the
pointed-to types have the same representation, we can introduce a
forced conversion.

Fixes #6847.

LGTM=rsc
R=rsc, iant, khr
CC=golang-codereviews
https://golang.org/cl/72380043
src/cmd/gc/select.c
test/fixedbugs/issue6847.go [new file with mode: 0644]