Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile: treat empty and absent struct tags as identical #15439

Closed
mdempsky opened this issue Apr 25, 2016 · 1 comment
Closed

cmd/compile: treat empty and absent struct tags as identical #15439

mdempsky opened this issue Apr 25, 2016 · 1 comment
Milestone

Comments

@mdempsky
Copy link
Member

cmd/compile erroneously rejects this code:

package p
var _ *struct{ x int } = (*struct{ x int "" })(nil)

Package reflect may also need to be fixed, as this program should output true, true: http://play.golang.org/p/QNISntvhWb But that may come for free after fixing cmd/compile.

See also #15412.

@mdempsky mdempsky self-assigned this Apr 25, 2016
@mdempsky mdempsky added this to the Go1.7 milestone Apr 25, 2016
@gopherbot
Copy link

CL https://golang.org/cl/22429 mentions this issue.

@golang golang locked and limited conversation to collaborators Apr 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants