-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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: b3.Succs has duplicate block b3 #11593
Comments
Are labels named _ valid go? It would seem like you can't use them ever, yet an unused label is invalid. |
@griesemer for spec question |
Worth checking whether it crashes the same way with named labels. |
@DanielMorsing @dvyukov Labels named _ are valid. The _ identifier is a valid identifier everywhere a name is declared (as in a label declaration), but _ is never entered into a scope and thus is never defined/declared. Thus it doesn't "exist" and cannot be used or found as being unused. Very much like _ variables are valid and the compiler does not complain if they are not used. |
CL https://golang.org/cl/12093 mentions this issue. |
An empty label statement can just be ignored, as it cannot be the target of any gotos. Tests are already in test/fixedbugs/issue7538*.go Fixes #11589 Fixes #11593 Change-Id: Iadcd639e7200ce16aa40fd7fa3eaf82522513e82 Reviewed-on: https://go-review.googlesource.com/12093 Reviewed-by: Daniel Morsing <daniel.morsing@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Fixed by CL 12093. |
on dev.ssa branch
go version devel +be2a3e2 Thu Jul 2 08:29:33 2015 +0000 linux/amd64
gc crashes on the following program:
The text was updated successfully, but these errors were encountered: