compiler: permit empty statements after fallthrough
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 5 Feb 2018 01:53:23 +0000 (01:53 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 5 Feb 2018 01:53:23 +0000 (01:53 +0000)
commit33cdac3baa9e0c8da598d5124ac9196be30a3ccb
treec272b5d4ac7f6b0339f877949b0f1eb2c773ba1a
parent964c809fb28f2bbb5b7c35d7951911abff242b94
compiler: permit empty statements after fallthrough

    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
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/parse.cc