public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "arsen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113457] Nesting coroutine definitions (e.g. via a lambda or a template expansion) can ICE the compiler Date: Fri, 23 Aug 2024 17:37:18 +0000 [thread overview] Message-ID: <bug-113457-4-GRKuf7E3Ks@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-113457-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113457 Arsen Arsenović <arsen at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Trying to emulate |Nesting coroutine |views::concat with |definitions (e.g. via a |std::generator gives ICE on |lambda or a template |co_yield: "internal |expansion) can ICE the |compiler error: in |compiler |canonicalize_component_ref, | |at gimplify.cc" | Assignee|unassigned at gcc dot gnu.org |arsen at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #8 from Arsen Arsenović <arsen at gcc dot gnu.org> --- reduced more: #include <coroutine> struct coro { struct promise_type { std::suspend_never initial_suspend (); std::suspend_never final_suspend () noexcept; void return_void (); void unhandled_exception (); coro get_return_object (); }; }; struct not_quite_suspend_never : std::suspend_never {}; coro foo () { co_await std::suspend_never{}, [] () -> coro { co_return; }, co_await not_quite_suspend_never{}; }
next prev parent reply other threads:[~2024-08-23 17:37 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-17 20:09 [Bug c++/113457] New: Trying to emulate views::concat with std::generator gives ICE on co_yield: "internal compiler error: in canonicalize_component_ref, at gimplify.cc" dboles.src at gmail dot com 2024-01-17 20:33 ` [Bug c++/113457] " mpolacek at gcc dot gnu.org 2024-01-17 20:59 ` dboles.src at gmail dot com 2024-01-17 21:08 ` redi at gcc dot gnu.org 2024-01-17 21:16 ` redi at gcc dot gnu.org 2024-01-18 2:02 ` pinskia at gcc dot gnu.org 2024-01-18 3:47 ` pinskia at gcc dot gnu.org 2024-01-18 7:51 ` pinskia at gcc dot gnu.org 2024-08-23 17:37 ` arsen at gcc dot gnu.org [this message] 2024-08-26 23:05 ` [Bug c++/113457] Nesting coroutine definitions (e.g. via a lambda or a template expansion) can ICE the compiler cvs-commit at gcc dot gnu.org 2024-08-29 12:16 ` arsen at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-113457-4-GRKuf7E3Ks@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).