]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: recognize embedded field in inlined function
authorIan Lance Taylor <iant@golang.org>
Wed, 15 Jul 2015 05:17:41 +0000 (22:17 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 15 Jul 2015 06:04:51 +0000 (06:04 +0000)
commit2e4b6599541a92b76857ca546679a8d304730b10
tree1a6e1e265ed67f736ad3ccd27dfb263a0828a35d
parent749b391c55b0139910d86ac0f8a0c42957e01d1c
cmd/compile: recognize embedded field in inlined function

There was already special code to recognize "?" in hidden_structdcl,
which is used for inlined types and variables.  This recognizes "?" in
structdcl as well, a case that arises when a struct type appears
within an inlined function body.

Fixes #10219.

Change-Id: Ic5257ae54f817e0d4a189c2294dcd633c9f2101a
Reviewed-on: https://go-review.googlesource.com/12241
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/go.y
src/cmd/compile/internal/gc/y.go
test/fixedbugs/issue10219.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue10219.dir/b.go [new file with mode: 0644]
test/fixedbugs/issue10219.dir/c.go [new file with mode: 0644]
test/fixedbugs/issue10219.go [new file with mode: 0644]