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

griesemer opened this Issue Mar 10, 2019 · 0 comments


None yet
1 participant
Copy link

griesemer commented Mar 10, 2019


go tool compile x.go with x.go:

package main

import "unsafe"

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

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.