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: nil pointer in buildClosure #48225

Closed
korzhao opened this issue Sep 7, 2021 · 2 comments
Closed

cmd/compile: nil pointer in buildClosure #48225

korzhao opened this issue Sep 7, 2021 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@korzhao
Copy link
Contributor

korzhao commented Sep 7, 2021

What version of Go are you using (go version)?

$ go version
go version devel go1.18

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

package main

type Foo[T any] struct {
}

func (foo Foo[T]) Get()  {
}

var(
     _ = Foo[[]string]{}.Get
)

func main() {
}

What did you expect to see?

What did you see instead?

[signal SIGSEGV: segmentation violation code=0x1 addr=0x80 pc=0x17c49ff]

goroutine 1 [running]:
cmd/compile/internal/noder.(*irgen).buildClosure(0xc0002fa200, 0x0, {0x1a63778, 0xc0003c2300})
        /Users/kezhao/google/go/src/cmd/compile/internal/noder/stencil.go:405 +0xc7f

@danscales

@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 7, 2021
@ALTree ALTree added this to the Go1.18 milestone Sep 7, 2021
@thanm
Copy link
Contributor

thanm commented Sep 7, 2021

@randall77 @danscales

@gopherbot
Copy link

Change https://golang.org/cl/348512 mentions this issue: cmd/compile: fix implement for closure in a global assignment

@golang golang locked and limited conversation to collaborators Sep 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants