aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/expr.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-09-09 06:01:35 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-09-09 06:01:35 +0000
commitd46699acb04b053a391abe3841543dfe0cfb5751 (patch)
treeba2149f66908b36dd5a9815a4225e7823f2120bf /gcc/fortran/expr.c
parent0f99f8e6d63038b68e5e7af950ff9e329bdc40ad (diff)
downloadgcc-d46699acb04b053a391abe3841543dfe0cfb5751.zip
gcc-d46699acb04b053a391abe3841543dfe0cfb5751.tar.gz
gcc-d46699acb04b053a391abe3841543dfe0cfb5751.tar.bz2
compiler: guard against implicit double pointer indirection
The code that lowers field references can sometimes introduce a double pointer indirection in cases where it is not/safe appropriate. For example, in var p **struct { f int } p.f = 0 the assignment LHS was being incorrectly lowered to (*(*p)).f. Detect this situation and issue an error. Fixes golang/go#21770 Reviewed-on: https://go-review.googlesource.com/62330 From-SVN: r251918
Diffstat (limited to 'gcc/fortran/expr.c')
0 files changed, 0 insertions, 0 deletions