]> Cypherpunks repositories - gostls13.git/commit
go/internal/gccgoimporter: permit fixups for V2 export data
authorThan McIntosh <thanm@google.com>
Wed, 12 Dec 2018 19:38:03 +0000 (14:38 -0500)
committerThan McIntosh <thanm@google.com>
Wed, 12 Dec 2018 23:01:16 +0000 (23:01 +0000)
commit3ae2c6c52eb4b8714245b91d094e0ccdfdbe585c
treee090901271a10d729017c4dc9cc8f32055b77906
parentbf141a18c6eb852834065c78c30432f86a90d345
go/internal/gccgoimporter: permit fixups for V2 export data

The changes added in https://golang.org/cl/151997 to fix problems when
reading older export data introduced the ability to add "fixups" to
handle references to a type whose definition has not yet been
finalized. It turns out we need to allow for fixups even for more
recent export data (V2 and V3); this patch removes a version guard for
the fixup generation logic.

Fixes #29198.

Change-Id: I82136ac45b53e4a59c05ff0879ac6bb545d0ff31
Reviewed-on: https://go-review.googlesource.com/c/153821
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/internal/gccgoimporter/importer_test.go
src/go/internal/gccgoimporter/parser.go
src/go/internal/gccgoimporter/testdata/issue29198.go [new file with mode: 0644]
src/go/internal/gccgoimporter/testdata/issue29198.gox [new file with mode: 0644]