[Bug c++/125997] coroutine ICE

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 27 02:06:12 GMT 2026


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

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sam James from comment #1)
> Dupe of PR121016 maybe?

Yes:

/* NOLINTNEXTLINE(cppcoreguidelines-macro-usage) */
#define TRY_OR_CO_RETURN(expr)                                      \
    __extension__({                                                 \
        auto&& _res = (expr);                                       \
        if (!_res)                                                  \
            {                                                       \
                co_return std::unexpected(std::move(_res.error())); \
            }                                                       \
        std::move(*_res);                                           \
    })

*** This bug has been marked as a duplicate of bug 121016 ***


More information about the Gcc-bugs mailing list