public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95505] New: [coroutines] ICE assert with get_return_object_on_allocation_failure
@ 2020-06-03 16:00 bruck.michael at gmail dot com
  2020-06-04 19:54 ` [Bug c++/95505] " iains at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bruck.michael at gmail dot com @ 2020-06-03 16:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95505
           Summary: [coroutines] ICE assert with
                    get_return_object_on_allocation_failure
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bruck.michael at gmail dot com
  Target Milestone: ---

https://gcc.godbolt.org/z/2LXQ2c

#include <coroutine>

struct dummy
{
    struct promise_type
    {
        dummy get_return_object() const noexcept { return {}; }
        static dummy get_return_object_on_allocation_failure() noexcept {
return {}; }

        std::suspend_always initial_suspend() const noexcept { return {}; }
        std::suspend_never final_suspend() const noexcept { return {}; }
        void return_void() const noexcept {}
        void unhandled_exception() const noexcept {}
    };
};

dummy foo()
{
    co_return;
}

int main() {}
----

source>: In function 'dummy foo()':
<source>:20:1: internal compiler error: tree check: expected call_expr, have
error_mark in morph_fn_to_coro, at cp/coroutines.cc:4050
   20 | }
      | ^

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

end of thread, other threads:[~2020-06-27 10:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03 16:00 [Bug c++/95505] New: [coroutines] ICE assert with get_return_object_on_allocation_failure bruck.michael at gmail dot com
2020-06-04 19:54 ` [Bug c++/95505] " iains at gcc dot gnu.org
2020-06-20 15:14 ` cvs-commit at gcc dot gnu.org
2020-06-20 15:40 ` iains at gcc dot gnu.org
2020-06-21 19:18 ` cvs-commit at gcc dot gnu.org
2020-06-21 19:52 ` iains at gcc dot gnu.org
2020-06-27 10:45 ` bruck.michael at gmail dot com
2020-06-27 10:50 ` 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).