]> Cypherpunks repositories - gostls13.git/commit
fix implicit star for range on *map, *[].
authorRuss Cox <rsc@golang.org>
Wed, 20 May 2009 21:24:23 +0000 (14:24 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 20 May 2009 21:24:23 +0000 (14:24 -0700)
commit47e5152790e6dab326237259e4898da22917342a
treefd66f5244de635209da5f609c2b045a6ac1dc2be
parent04d8605c21e085eeba6dd8b7d5d19bcbb46f0ba8
fix implicit star for range on *map, *[].
do not update lineno from ONAME nodes,
because they have declaration lineno not use.
show actual name in top-level statement error.

before
runtime.a:7: x.go:5: walkstate: NAME not a top level statement

after
x.go:14: walkstate: runtime.Goexit not a top level statement

R=ken
OCL=29113
CL=29116
src/cmd/gc/walk.c