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
Closed

cmd/compile: internal compiler error: Func.initLSym called twice #30709

griesemer opened this issue Mar 10, 2019 · 1 comment
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@griesemer
Copy link
Contributor

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 the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Mar 10, 2019
@griesemer griesemer added this to the Go1.13 milestone Mar 10, 2019
@gopherbot
Copy link

Change https://golang.org/cl/172298 mentions this issue: cmd/compile: fix const declaration group broken with closure

@golang golang locked and limited conversation to collaborators Apr 15, 2020
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

2 participants