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

gccgo: fallthrough in valid position should be valid if followed by empty statements #14538

Closed
griesemer opened this issue Feb 27, 2016 · 1 comment
Milestone

Comments

@griesemer
Copy link
Contributor

See #14422 for details.

@ianlancetaylor ianlancetaylor added this to the Gccgo milestone Feb 27, 2016
@gopherbot
Copy link

Change https://golang.org/cl/91855 mentions this issue: compiler: permit empty statements after fallthrough

hubot pushed a commit to gcc-mirror/gcc that referenced this issue Feb 5, 2018
    
    The language spec permits empty statements after a fallthrough
    statement, so implement that.  Also give a better error message when a
    fallthrough statement is in the wrong place.  The test case for this
    is in the master repository, test/fixedbugs/issue14540.go, just not
    yet in the gccgo repository.
    
    Fixes golang/go#14538
    
    Reviewed-on: https://go-review.googlesource.com/91855


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257378 138bc75d-0d04-0410-961f-82ee72b054a4
@golang golang locked and limited conversation to collaborators Feb 5, 2019
asiekierka pushed a commit to WonderfulToolchain/gcc-ia16 that referenced this issue May 16, 2022
    
    The language spec permits empty statements after a fallthrough
    statement, so implement that.  Also give a better error message when a
    fallthrough statement is in the wrong place.  The test case for this
    is in the master repository, test/fixedbugs/issue14540.go, just not
    yet in the gccgo repository.
    
    Fixes golang/go#14538
    
    Reviewed-on: https://go-review.googlesource.com/91855

From-SVN: r257378
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants