]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: fix recursive type mapping
authorMatthew Dempsky <mdempsky@google.com>
Wed, 6 Aug 2014 01:16:56 +0000 (18:16 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 6 Aug 2014 01:16:56 +0000 (18:16 -0700)
commit0da4b2dbc20e6d8a01bb44516257fda56e713523
treed8298b87b228cac67531bd8e05d1f07c678b52a3
parentf7a8adbd511e921111fc0682d380a6f7a33e0c93
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
misc/cgo/test/issue8441.go [new file with mode: 0644]
src/cmd/cgo/gcc.go