From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 355113860C30; Sat, 13 Jul 2024 13:05:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 355113860C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1720875935; bh=GRe2pJ44bKSuRRk0jvF+90KY99TqH/N+ENGo4Qpbtns=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ylcT1t3EmXbvaz7Kl6jVRxyfU2f04c6045O3Ms86lVJ5eeuO2os21k9W3LjN+op8N c2Z3cyUvMwU5Z1fmhHwnAwuueS3CrJ3Lo05vSutacbQBGmw5Ik/PxUyDgchU9Pjhce XGsT66EeaGmm25EvFOLtVlsX3VZhpqLawoChm05Y= From: "ddvamp007 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115908] [coroutines] Wrong behavior of using get_return_object() when creating coroutines Date: Sat, 13 Jul 2024 13:05:34 +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: 15.0 X-Bugzilla-Keywords: C++-coroutines X-Bugzilla-Severity: normal X-Bugzilla-Who: ddvamp007 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115908 --- Comment #2 from Artyom Kolpakov --- When I wrote about returning the reference, i meant the return type of get_return_object(), and not the coroutine itself=