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

Closed
griesemer opened this issue Mar 10, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@griesemer
Copy link
Contributor

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

@gopherbot

This comment has been minimized.

Copy link

commented Apr 16, 2019

Change https://golang.org/cl/172298 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.