aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2015-09-17 13:57:40 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2015-09-17 13:57:40 +0000
commita78eb72ac066743c8c11dbc1032a1909963719a3 (patch)
tree9470bd83d6c0817a3a3dcf333b3163f36fc50d6a /gcc/function.c
parent4fb94ef9aa797bb3ccd23157aa8fd66ff8e80bc0 (diff)
downloadgcc-a78eb72ac066743c8c11dbc1032a1909963719a3.zip
gcc-a78eb72ac066743c8c11dbc1032a1909963719a3.tar.gz
gcc-a78eb72ac066743c8c11dbc1032a1909963719a3.tar.bz2
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 From-SVN: r227863
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions