Skip to content

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

@dvyukov

Description

@dvyukov
$ 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions