golang/go

gccgo: allows multiple declarations of a function

dvyukov opened this issue · 2 comments

gcc successfully compiles the following program:

package a
func n()
func n()

Both gc and go/types reject it. Compilers need to agree.

gcc version 6.0.0 2015070 (experimental) (GCC)

CL https://golang.org/cl/12508 mentions this issue.