compiler: Prohibit comparisons of funcs, maps, and slices to non-nil.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 28 Dec 2011 03:46:20 +0000 (03:46 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 28 Dec 2011 03:46:20 +0000 (03:46 +0000)
commit1358551fc61841e7a78b6f04919d96a54dc24bd1
tree0620cac8fee9b74e18be59d7bcc70a0982606b41
parent9437ab32a5b5d62b625680eaca90b189f8728ec5
compiler: Prohibit comparisons of funcs, maps, and slices to non-nil.

From-SVN: r182703
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/types.cc
gcc/testsuite/go.test/test/closure.go
gcc/testsuite/go.test/test/cmp1.go [deleted file]
gcc/testsuite/go.test/test/fixedbugs/bug285.go
gcc/testsuite/go.test/test/typeswitch.go