Commit a957ceec authored by Ian Lance Taylor's avatar Ian Lance Taylor

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
parent 902a4d5f
...@@ -8,10 +8,5 @@ package main ...@@ -8,10 +8,5 @@ package main
func main() { func main() {
var exit int; 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.
*/
...@@ -97,9 +97,6 @@ bugs/bug064.go:15: illegal types for operand: CALL ...@@ -97,9 +97,6 @@ bugs/bug064.go:15: illegal types for operand: CALL
struct { u int; v int } struct { u int; v int }
BUG: compilation should succeed BUG: compilation should succeed
=========== bugs/bug077.go
BUG: known to succeed incorrectly
=========== bugs/bug080.go =========== bugs/bug080.go
bugs/bug080.go:12: illegal types for operand: CALL bugs/bug080.go:12: illegal types for operand: CALL
int int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment