diff options
author | Bin Cheng <bin.cheng@linux.alibaba.com> | 2020-01-30 12:10:36 +0800 |
---|---|---|
committer | Bin Cheng <bin.cheng@linux.alibaba.com> | 2020-01-30 12:35:46 +0800 |
commit | 3b35b3d4cc26816d1c6342b880f303b577ecbb84 (patch) | |
tree | d738593ac0d2e49e22d4143489b689e037e5ea67 /gcc/fortran/trans-decl.c | |
parent | 66af5a226acd0edfbafcbcac76ed268cee0612ed (diff) | |
download | gcc-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