public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95440] New: [coroutines] ICE with static members in promise_type
@ 2020-05-30 16:44 bruck.michael at googlemail dot com
  2020-06-06 19:38 ` [Bug c++/95440] " iains at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bruck.michael at googlemail dot com @ 2020-05-30 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95440
           Summary: [coroutines] ICE with static members in promise_type
           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 googlemail dot com
  Target Milestone: ---

https://gcc.godbolt.org/z/PoAYhX


#include <coroutine>

struct task
{
        struct promise_type
        {
                auto get_return_object() const { return task{}; }
                static constexpr std::suspend_never initial_suspend()  { return
{}; }
                /*static*/ constexpr std::suspend_never final_suspend() {
return {}; }
                /*static*/ constexpr void return_void() {}
                /*static*/ constexpr void unhandled_exception() {}
        };
};

task
test_task()
{
    co_await std::suspend_always{};
}

auto t = test_task();

int main() {}

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

end of thread, other threads:[~2020-06-14  9:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-30 16:44 [Bug c++/95440] New: [coroutines] ICE with static members in promise_type bruck.michael at googlemail dot com
2020-06-06 19:38 ` [Bug c++/95440] " iains at gcc dot gnu.org
2020-06-10 20:39 ` cvs-commit at gcc dot gnu.org
2020-06-13 18:18 ` cvs-commit at gcc dot gnu.org
2020-06-14  9:00 ` 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).