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 · 1 comment


None yet
2 participants
Copy link

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


This comment has been minimized.

Copy link

commented Apr 16, 2019

Change mentions this issue: cmd/compile: fix const declaration group broken with closure

@gopherbot gopherbot closed this in 644543d Apr 16, 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.