• Rémy Oudompheng's avatar
    cmd/gc: fix spurious type errors in walkselect. · fcc10bc0
    Rémy Oudompheng authored
    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
    fcc10bc0
issue6847.go 1.17 KB