compiler: don't advance past unexpected semicolon
authorIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2020 03:15:57 +0000 (19:15 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2020 15:47:06 +0000 (07:47 -0800)
commitc7932d5626a81a35686a3992b5a02570aba5cd0b
treebdfb4df0d0676bebe7eb18021f670fd578bfd74c
parentf0a2d11f8ad85bfdedb79bc47bd34bd08e38f81f
compiler: don't advance past unexpected semicolon

We've already read the unexpected semicolon, so advancing again causes
us to skip the next token, causing future errors to be out of sync.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/274439
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/parse.cc