https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98118

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>:

https://gcc.gnu.org/g:3d9577c254003f2d18185015b75ce6e3e4af9ca2

commit r11-7529-g3d9577c254003f2d18185015b75ce6e3e4af9ca2
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Wed Feb 17 15:13:57 2021 +0000

    coroutines : Adjust constraints on when to build ctors [PR98118].

    PR98118 shows that TYPE_NEEDS_CONSTRUCTING is necessary but not
    sufficient.  Use type_build_ctor_call() instead.

    gcc/cp/ChangeLog:

            PR c++/98118
            * coroutines.cc (build_co_await): Use type_build_ctor_call()
            to determine cases when a CTOR needs to be built.
            (flatten_await_stmt): Likewise.
            (morph_fn_to_coro): Likewise.

    gcc/testsuite/ChangeLog:

            PR c++/98118
            * g++.dg/coroutines/pr98118.C: New test.

Reply via email to