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: spurious invalid recursive type #57176

Closed
philhofer opened this issue Dec 8, 2022 · 1 comment
Closed

cmd/compile: spurious invalid recursive type #57176

philhofer opened this issue Dec 8, 2022 · 1 comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge

Comments

@philhofer
Copy link
Contributor

The following compiles fine on go1.19.3 and fails on go1.19.4:

~ $ cat test.go
package main

import "sync/atomic"

type tree struct {
    links [2]atomic.Pointer[tree]
}

func main() {

}
~$ go run test.go
~$ go version
go version go1.19.3 linux/amd64

And on go1.19.4:

~ $ go run test.go
# command-line-arguments
./test.go:5:6: invalid recursive type tree
        ./test.go:5:6: tree refers to
        ./test.go:6:20: atomic.Pointer refers to
        ./test.go:5:6: tree
~ $ go version
go version go1.19.4 linux/amd64
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Dec 8, 2022
@philhofer
Copy link
Contributor Author

Ah, I see this is a duplicate of #57124; closing. Sorry for the noise.

@golang golang locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

2 participants