compiler: don't error for goto over type or const declaration
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 5 Feb 2018 01:43:24 +0000 (01:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 5 Feb 2018 01:43:24 +0000 (01:43 +0000)
commit91cb7f7804da1e4974e1e3589822e10910eeae20
tree6f053e5ff47b5a0f74f5a52873db9e9992f38b12
parent6ac0aed81501d236ed456b54a85684ac03dde713
compiler: don't error for goto over type or const declaration

    We should only issue an error for a goto over a var declaration.

    The test case for this is already in the master repository, at
    test/fixedbugs/issue8042.go.  It just hasn't been copied into the
    gccgo repository yet.

    Fixes golang/go#19089

    Reviewed-on: https://go-review.googlesource.com/91696

From-SVN: r257375
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc