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

x/tools/cmd/eg: panic #10483

Open
alandonovan opened this issue Apr 16, 2015 · 1 comment

Comments

Projects
None yet
3 participants
@alandonovan
Copy link
Contributor

commented Apr 16, 2015

% cd $GOROOT/src/cmd

% cat t.go
package template

func before() string {
        return "foo"
}
func after() string {
        return "bar"
}

% eg -t t.go cmd/internal/gc
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x4c7a9d]

goroutine 1 [running]:
golang.org/x/tools/refactor/eg.(*Transformer).matchExpr(0xc20e579000, 0x7f7ce0da9b28, 0xc210222a60, 0x7f7ce0da9b28, 0x0, 0xc2080f3f30)
        /usr/local/google/home/adonovan/got3/src/golang.org/x/tools/refactor/eg/match.go:68 +0x17fd
golang.org/x/tools/refactor/eg.(*Transformer).Transform.func1(0x6a7c80, 0xc2080f3f30, 0xd6, 0x0, 0x0, 0x0)
...

@alandonovan alandonovan self-assigned this Apr 16, 2015

@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Jun 3, 2015

@gopherbot

This comment has been minimized.

Copy link

commented Dec 22, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.