commit | 6b309be7ab7c17beb77c6e40b258278e7454d919 | [log] [tgz] |
---|---|---|
author | Robert Griesemer <gri@golang.org> | Fri Jun 24 15:55:30 2022 -0700 |
committer | Robert Griesemer <gri@golang.org> | Sun Jun 26 00:21:29 2022 +0000 |
tree | 3210248a9b11292976532e5f73697cf631e83779 | |
parent | 1821639b57a643f9c3f6d3b3d329d2283d5d7a57 [diff] |
cmd/compile/internal/syntax: check fallthrough in CheckBranches mode The parser CheckBranches mode checked correct use of break, continue, and labels, but not of fallthrough statements. This CL adds checking of fallthrough statements as well. For #51456. Change-Id: I5000388011973724f80c59a6aaf015e3bb70faea Reviewed-on: https://go-review.googlesource.com/c/go/+/414134 Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.