cmd/gc: diagnose '_ = nil' better

Fixes issue 6004.

R=ken2
CC=golang-dev
https://codereview.appspot.com/13616044