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: misleading error message for real/imag of pointer to array argument #20602

Closed
griesemer opened this issue Jun 7, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@griesemer
Copy link
Contributor

commented Jun 7, 2017

https://play.golang.org/p/9L71iPkoOm produces

tmp/sandbox063583806/main.go:4: invalid argument p (type [1]complex128) for real
tmp/sandbox063583806/main.go:5: invalid argument p (type [1]complex128) for imag

but the actual argument type is *[1]complex128 not [1]complex128.

@griesemer griesemer added this to the Go1.9 milestone Jun 7, 2017

@griesemer griesemer self-assigned this Jun 7, 2017

@gopherbot

This comment has been minimized.

Copy link

commented Jun 7, 2017

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

@gopherbot gopherbot closed this in 6602005 Jun 7, 2017

@golang golang locked and limited conversation to collaborators Jun 7, 2018

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