]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/gc: ensure unique parameter and result names in function types
authorRuss Cox <rsc@golang.org>
Fri, 15 Mar 2013 19:24:13 +0000 (15:24 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 15 Mar 2013 19:24:13 +0000 (15:24 -0400)
commit615f289209d08316da2c609f843bd20201ce2275
treeb64e4225d55267a71e2cecc85743bc5fb9baec16
parent09cd13c51dabd709e79329a9b8591fc4d15b6f3f
cmd/gc: ensure unique parameter and result names in function types

In addition to fixing the bug, the check is now linear instead of quadratic.

Fixes #4469.

R=ken2
CC=golang-dev
https://golang.org/cl/7773047
src/cmd/gc/dcl.c
src/cmd/gc/go.h
test/fixedbugs/bug040.go
test/fixedbugs/bug342.go
test/fixedbugs/bug412.go
test/fixedbugs/bug469.go [deleted file]
test/func1.go
test/funcdup.go [new file with mode: 0644]
test/funcdup2.go [new file with mode: 0644]