aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-decl.c
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@linux.alibaba.com>2020-01-30 12:10:36 +0800
committerBin Cheng <bin.cheng@linux.alibaba.com>2020-01-30 12:35:46 +0800
commit3b35b3d4cc26816d1c6342b880f303b577ecbb84 (patch)
treed738593ac0d2e49e22d4143489b689e037e5ea67 /gcc/fortran/trans-decl.c
parent66af5a226acd0edfbafcbcac76ed268cee0612ed (diff)
downloadgcc-3b35b3d4cc26816d1c6342b880f303b577ecbb84.zip
gcc-3b35b3d4cc26816d1c6342b880f303b577ecbb84.tar.gz
gcc-3b35b3d4cc26816d1c6342b880f303b577ecbb84.tar.bz2
Handle CO_AWAIT_EXPR in conversion in co_await_expander.
Function co_await_expander expands CO_AWAIT_EXPR and inserts expanded code before result of co_await is used, however, it doesn't cover the type conversion case and leads to gimplify ICE. This patch fixes it. gcc/cp * coroutines.cc (co_await_expander): Handle type conversion case. gcc/testsuite * g++.dg/coroutines/co-await-syntax-09-convert.C: New test.
Diffstat (limited to 'gcc/fortran/trans-decl.c')
0 files changed, 0 insertions, 0 deletions