Re: Go patch committed: Don't advance past unexpected semicolon

2020-12-02 Thread Ian Lance Taylor via Gcc-patches
On Wed, Dec 2, 2020 at 7:47 AM Ian Lance Taylor wrote: > > This Go frontend patch changes the parser to not advance past an > unexpected semicolon, after it gives an error. We've already read the > unexpected semicolon, so advancing again causes us to skip the next > token, causing future errors

Go patch committed: Don't advance past unexpected semicolon

2020-12-02 Thread Ian Lance Taylor via Gcc-patches
This Go frontend patch changes the parser to not advance past an unexpected semicolon, after it gives an error. 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. Bootstrapped and ran Go testsuite on x86_64-pc