cmd/gc: better error messages for C-style if statements.
Given if (i == 0) x++ The old message was x.go:6: syntax error: unexpected semicolon or newline before { Now we see x.go:6: syntax error: missing { after if clause Fixes #5687 R=golang-dev, adg CC=golang-dev https://golang.org/cl/12822045
Showing
This diff is collapsed.
Please
register
or
sign in
to comment