]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: add case for ODOTTYPE to escwalk
authorDavid Chase <drchase@google.com>
Thu, 30 Jul 2015 16:31:18 +0000 (12:31 -0400)
committerDavid Chase <drchase@google.com>
Thu, 30 Jul 2015 17:39:44 +0000 (17:39 +0000)
commit6f6bcadc17087f564f1d5d915f08765b0a1e7263
tree1f0baf88261e86e15b4db7737a6dfaae487a01b1
parent0bd8de10486ec14762e9531fd62e780c2ab5180c
cmd/compile: add case for ODOTTYPE to escwalk

ODOTTYPE should be treated a whole lot like ODOT,
but it was missing completely from the switch in
escwalk and thus escape status did not propagate
to fields.

Since interfaces are required to trigger this bug,
the test was added to escape_iface.go.

Fixes #11931.

Change-Id: Id0383981cc4b1a160f6ad447192a112eed084538
Reviewed-on: https://go-review.googlesource.com/12921
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/esc.go
test/escape_iface.go