The scope rules have been changed to say that labels live in a separate per-function namespace. R=gri DELTA=24 (8 added, 16 deleted, 0 changed) OCL=19006 CL=19057
diff --git a/test/bugs/bug077.go b/test/fixedbugs/bug077.go similarity index 60% rename from test/bugs/bug077.go rename to test/fixedbugs/bug077.go index 97b9d2f..ba6e3b7 100644 --- a/test/bugs/bug077.go +++ b/test/fixedbugs/bug077.go
@@ -8,10 +8,5 @@ func main() { var exit int; -exit: // this shouldn't be legal +exit: } - -/* -Within a scope, an identifier should have only one association - it cannot be -a variable and a label at the same time. -*/
diff --git a/test/golden.out b/test/golden.out index 3b4fcec..70b5db2 100644 --- a/test/golden.out +++ b/test/golden.out
@@ -97,9 +97,6 @@ struct { u int; v int } BUG: compilation should succeed -=========== bugs/bug077.go -BUG: known to succeed incorrectly - =========== bugs/bug080.go bugs/bug080.go:12: illegal types for operand: CALL int