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

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

https://gcc.gnu.org/g:fad6d041ebf191eecdc98e162869c2f4a6eb245f

commit r10-9514-gfad6d041ebf191eecdc98e162869c2f4a6eb245f
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.

    (cherry picked from commit 3d9577c254003f2d18185015b75ce6e3e4af9ca2)

Reply via email to