commit | 0c8c4fca4b52bc2323561a432436af5343e0f7b4 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Fri Feb 02 13:17:05 2018 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Feb 05 01:42:43 2018 +0000 |
tree | 4595f99cba7b81c29ab8f7b515a7b03f64839380 | |
parent | 2f7ac42a3f83b78d97912ce1e86296b2af4f52b7 [diff] |
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 Change-Id: I2868b2d01026b61fd700005b332fbf453bb946bf Reviewed-on: https://go-review.googlesource.com/91696 Reviewed-by: Than McIntosh <thanm@google.com>