public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/93642] [Coroutines] internal compiler error: in expand_expr_addr_expr_1, at expr.c:8070 using co_return
       [not found] <bug-93642-4@http.gcc.gnu.org/bugzilla/>
@ 2020-04-06 18:05 ` egor_suvorov at mail dot ru
  2021-09-30 15:30 ` iains at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: egor_suvorov at mail dot ru @ 2020-04-06 18:05 UTC (permalink / raw)
  To: gcc-bugs

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

Egor Suvorov <egor_suvorov at mail dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egor_suvorov at mail dot ru

--- Comment #3 from Egor Suvorov <egor_suvorov at mail dot ru> ---
It looks like GCC chokes if it has to call unusual constructor of `promise`.
E.g. if `get_return_object()` returns `int` and there is `promise(int)`
constructor (with no `coroutine_handle` in sight), same error occurs.

However, if I return `promise` from `get_return_object()` and provide
`promise(const promise&) {}`, GCC does not crash.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/93642] [Coroutines] internal compiler error: in expand_expr_addr_expr_1, at expr.c:8070 using co_return
       [not found] <bug-93642-4@http.gcc.gnu.org/bugzilla/>
  2020-04-06 18:05 ` [Bug c++/93642] [Coroutines] internal compiler error: in expand_expr_addr_expr_1, at expr.c:8070 using co_return egor_suvorov at mail dot ru
@ 2021-09-30 15:30 ` iains at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: iains at gcc dot gnu.org @ 2021-09-30 15:30 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iains at gcc dot gnu.org
         Resolution|---                         |WORKSFORME
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> ---
works OK on gcc-10 gcc-11 and gcc-12 branches as of today.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-30 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-93642-4@http.gcc.gnu.org/bugzilla/>
2020-04-06 18:05 ` [Bug c++/93642] [Coroutines] internal compiler error: in expand_expr_addr_expr_1, at expr.c:8070 using co_return egor_suvorov at mail dot ru
2021-09-30 15:30 ` iains at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).