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: internal compiler error: usefield without paramfld #12171

Closed
dvyukov opened this issue Aug 17, 2015 · 2 comments
Closed

cmd/compile: internal compiler error: usefield without paramfld #12171

dvyukov opened this issue Aug 17, 2015 · 2 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Aug 17, 2015

$ export GOEXPERIMENT=fieldtrack
$ ./make.bash
$ go build -race test.go

results in:

test.go:10: internal compiler error: usefield B F without paramfld

The program is:

package foo

type A struct {
    F int
}

type B A

func (f *B) M() int {
    return A(*f).F
}

go version devel +d7aae33 Mon Aug 17 15:29:23 2015 +0000 linux/amd64

This is a regression from 1.4 and affects our internal race detector usage.

@dvyukov dvyukov added this to the Go1.5 milestone Aug 17, 2015
@gopherbot
Copy link

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

@gopherbot
Copy link

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

@rsc rsc closed this as completed in f68d1df Aug 18, 2015
@golang golang locked and limited conversation to collaborators Aug 22, 2016
@rsc rsc removed their assignment Jun 23, 2022
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

3 participants