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: crash on an unusual program #52278

Closed
go101 opened this issue Apr 11, 2022 · 3 comments
Closed

cmd/compile: crash on an unusual program #52278

go101 opened this issue Apr 11, 2022 · 3 comments
Labels
NeedsFix
Milestone

Comments

@go101
Copy link

@go101 go101 commented Apr 11, 2022

What version of Go are you using (go version)?

$ go version
go version go1.18 linux/amd64

What did you do?

package main

func main() {
	_:
	_: // internal compiler error: label missing tag
}

What did you expect to see?

Compiles okay.

What did you see instead?

Fails to compile.

# command-line-arguments
./main.go:5:3: internal compiler error: label missing tag

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
@dmitshur dmitshur added the NeedsInvestigation label Apr 11, 2022
@dmitshur dmitshur added this to the Backlog milestone Apr 11, 2022
@dmitshur
Copy link
Contributor

@dmitshur dmitshur commented Apr 11, 2022

CC @golang/runtime.

@nimelehin
Copy link
Contributor

@nimelehin nimelehin commented Apr 11, 2022

Seems, the current implementation removes labels after processing them in func (e *escape) stmt(n ir.Node), so the 2nd blank label could not be found.

@gopherbot
Copy link

@gopherbot gopherbot commented Apr 11, 2022

Change https://go.dev/cl/399574 mentions this issue: cmd/compile: fix compilation crash with several blank labels

@dmitshur dmitshur removed this from the Backlog milestone Apr 12, 2022
@dmitshur dmitshur added this to the Go1.19 milestone Apr 12, 2022
@dmitshur dmitshur added NeedsFix and removed NeedsInvestigation labels Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsFix
Projects
None yet
Development

No branches or pull requests

4 participants