From: Ian Lance Taylor Date: Wed, 12 Nov 2008 02:17:54 +0000 (-0800) Subject: The scope rules have been changed to say that labels live in a X-Git-Tag: weekly.2009-11-06~2745 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a957ceec354899e37ba75ba1cd9e5f03bb9cfcaf;p=gostls13.git 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 97b9d2f459..ba6e3b77da 100644 --- a/test/bugs/bug077.go +++ b/test/fixedbugs/bug077.go @@ -8,10 +8,5 @@ package main 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 3b4fcecfe4..70b5db2700 100644 --- a/test/golden.out +++ b/test/golden.out @@ -97,9 +97,6 @@ bugs/bug064.go:15: illegal types for operand: CALL 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