golang / go

The Go programming language

Home Page:https://go.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gccgo: allows multiple declarations of a function

dvyukov opened this issue · 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 20150702 (experimental) (GCC)

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