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: bogus "fallthrough statement out of place" #13262
Comments
This is a bug with both the existing and the new parser. |
Slightly simpler case:
|
CL https://golang.org/cl/22921 mentions this issue. |
Simpler reproducer for posterity in case the patch I mailed won't be merged
anything that creates an
as
The problem is that the |
cmd/compile fails to compile the following program:
gotype eats it.
go version devel +25a28da Sun Nov 15 23:41:28 2015 +0000 linux/amd64
Found with GoSmith (https://github.com/dvyukov/gosmith).
The text was updated successfully, but these errors were encountered: