OSDN Git Service

Don't permit close of receive-only channel.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Oct 2011 16:35:24 +0000 (16:35 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Oct 2011 16:35:24 +0000 (16:35 +0000)
commit5202d98629b534b72a22293124b527f3281573f6
treec10e4945a3688d1e9989fda3872cb8d6ba04f4e3
parent19b8522371c22f5f3edbf9b0e6f39c533d6ae3ef
Don't permit close of receive-only channel.
Better panic on attempt to close nil channel.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180437 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/expressions.cc
libgo/runtime/go-close.c