Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile: a global lambda with a function named glob with lambda in it is an error #16193

Closed
KamilaBorowska opened this issue Jun 27, 2016 · 2 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@KamilaBorowska
Copy link

KamilaBorowska commented Jun 27, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?

    go version go1.6.2 linux/amd64

  2. What operating system and processor architecture are you using (go env)?

    GOARCH="amd64"
    GOBIN=""
    GOEXE=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOOS="linux"
    GOPATH=""
    GORACE=""
    GOROOT="/usr/lib/go-1.6"
    GOTOOLDIR="/usr/lib/go-1.6/pkg/tool/linux_amd64"
    GO15VENDOREXPERIMENT="1"
    CC="gcc"
    GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
    CXX="g++"
    CGO_ENABLED="1"

  3. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    A link on play.golang.org is best.

    Defined a global anonymous function and a function called glob that uses an anonymous function internally.

    https://play.golang.org/p/ZofsJuBk7s

  4. What did you expect to see?

    No error.

  5. What did you see instead?

    # command-line-arguments
    ./glob.go:6: glob.func1 redeclared in this block
            previous declaration at ./glob.go:11
    
@kostya-sh
Copy link
Contributor

Happens with Go tip too

@ianlancetaylor ianlancetaylor changed the title A global lambda with a function named glob with lambda in it is an error cmd/compile: a global lambda with a function named glob with lambda in it is an error Jun 27, 2016
@ianlancetaylor ianlancetaylor added this to the Go1.7Maybe milestone Jun 27, 2016
@bradfitz bradfitz added the NeedsFix The path to resolution is known, but the work has not been done. label Jun 27, 2016
@ianlancetaylor ianlancetaylor self-assigned this Jun 27, 2016
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators Jun 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

5 participants