summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-17 13:57:40 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-17 13:57:40 +0000
commite429e3bd7a4ee90fd247e078d29aee17ad3b15c2 (patch)
tree9470bd83d6c0817a3a3dcf333b3163f36fc50d6a /gcc/function.c
parent706dca65fda779bf270d3d7018c138cbe87f643d (diff)
downloadgcc-e429e3bd7a4ee90fd247e078d29aee17ad3b15c2.tar.gz
compiler: Issue channel type errors earlier.
When asking for the type of a receive operation, the compiler would return an error type if the receive operator was being used on an invalid channel type and the error would be reported in a later pass. There are several ways that the type checking pass would not see the original node and fail to issue the error. This patch modifies receive operations to give an error immediately once it is known that the channel type is invalid. Fixes golang/go#12323. Reviewed-on: https://go-review.googlesource.com/13987 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227863 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions