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: Func.initLSym called twice #30709

Open
griesemer opened this Issue Mar 10, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@griesemer
Copy link
Contributor

griesemer commented Mar 10, 2019

Reproducer: https://play.golang.org/p/g4q7PxTljVq

go tool compile x.go with x.go:

package main

import "unsafe"

const (
	x = unsafe.Sizeof(func() {})
	y
)

produces the error. Likely because the init expression for x is duplicated for y.

@griesemer griesemer added this to the Go1.13 milestone Mar 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.