]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.3] cmd/cgo: fix recursive type mapping
authorAndrew Gerrand <adg@golang.org>
Mon, 11 Aug 2014 23:42:51 +0000 (09:42 +1000)
committerIan Lance Taylor <iant@golang.org>
Mon, 11 Aug 2014 23:42:51 +0000 (09:42 +1000)
commitb0454f5d2b6acfb291d44a7281b0aef461ac6807
treebe1bb769efa7d1169c7518968af90b0595789ec5
parentb48cd4b9dcb6cefb8dcff6ee571234620a879b68
[release-branch.go1.3] cmd/cgo: fix recursive type mapping

««« CL 122850043 / 0015a2541545
cmd/cgo: fix recursive type mapping

Instead of immediately completing pointer type mappings, add them to
a queue to allow them to be completed later.  This fixes issues caused
by Type() returning arbitrary in-progress type mappings.

Fixes #8368.
Fixes #8441.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/122850043

»»»

TBR=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/128940043
misc/cgo/test/issue8441.go [new file with mode: 0644]
src/cmd/cgo/gcc.go