]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix export of inlined function body with type guard
authorRuss Cox <rsc@golang.org>
Thu, 8 Nov 2012 21:07:05 +0000 (16:07 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 8 Nov 2012 21:07:05 +0000 (16:07 -0500)
commit761830f48196aa1170b5224c1da34f4e20053ebd
tree90f20089fc13d1f846601e3d665e76c8b8fcfcc3
parent5451708d5be8a826cd1753fe2be611bc4d278059
cmd/gc: fix export of inlined function body with type guard

When exporting a body containing
        x, ok := v.(Type)

the definition for Type was not being included, so when the body
was actually used, it would cause an "unknown type" compiler error.

Fixes #4370.

R=ken2
CC=golang-dev
https://golang.org/cl/6827064
src/cmd/gc/export.c
test/fixedbugs/issue4370.dir/p1.go [new file with mode: 0644]
test/fixedbugs/issue4370.dir/p2.go [new file with mode: 0644]
test/fixedbugs/issue4370.dir/p3.go [new file with mode: 0644]
test/fixedbugs/issue4370.go [new file with mode: 0644]