From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 740FC3836E6D; Mon, 23 May 2022 10:26:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 740FC3836E6D From: "blubban at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103871] [11/12/13 Regression] co_await causes build error Date: Mon, 23 May 2022 10:26:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.2.1 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: blubban at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2022 10:26:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103871 Alfred Agrell changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |blubban at gmail dot com --- Comment #15 from Alfred Agrell --- Just ran into this (and/or bug 98056). Still exists as of trunk-20220522. Minimized to https://godbolt.org/z/qhWWzKe4M #include #include class my_coro { public: my_coro(); class promise_type { public: my_coro get_return_object(); std::suspend_never initial_suspend(); std::suspend_never final_suspend() noexcept; void unhandled_exception(); }; }; std::suspend_never inner(std::initializer_list); my_coro doesnt_work() { co_await inner({ 1,2,3 }); }=