aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/arith.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2019-02-01 23:21:06 -0500
committerJason Merrill <jason@gcc.gnu.org>2019-02-01 23:21:06 -0500
commit01826160a3b2ab2f0c68c13b47d3467cf9618fbb (patch)
treef43a172424c629efa3b5e3ec06700600994e6184 /gcc/fortran/arith.c
parentfde81c6f70a7bdae57e7d5a7bb0ecae760ac9b5d (diff)
downloadgcc-01826160a3b2ab2f0c68c13b47d3467cf9618fbb.zip
gcc-01826160a3b2ab2f0c68c13b47d3467cf9618fbb.tar.gz
gcc-01826160a3b2ab2f0c68c13b47d3467cf9618fbb.tar.bz2
PR c++/88761 - ICE with reference capture of constant.
Here, we capture nf, then the use of the proxy decays to a constant during semantic processing of +nf. Since we saw some decay from proxy to constant, we walk through the lambda body to see which proxies are still used, but we weren't walking into subtrees of DECL_EXPR at all, so we missed the use of &nf in the initializer of y, and removed the capture. But then at instantiation time we try to use nf, don't have a proxy anymore, and ICE. * lambda.c (mark_const_cap_r): Do walk subtrees of DECL_EXPR for non-proxy decls. From-SVN: r268471
Diffstat (limited to 'gcc/fortran/arith.c')
0 files changed, 0 insertions, 0 deletions