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

griesemer opened this issue Jun 7, 2017 · 1 comment


None yet
2 participants
Copy link

commented Jun 7, 2017 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


This comment has been minimized.

Copy link

commented Jun 7, 2017

CL 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.