From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A930E3858C5E; Sun, 27 Nov 2022 14:24:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A930E3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669559047; bh=PzXfzaBPLBnqe9kMRgXKXLRZcnVTNiwUjZr+TBLh4dI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=s3hnvQjmKNfDzg6TnQcOvufSuohF06cevVaScox6HPXvjx6khWLG2pBszIugTny18 lDmFSn0pgUKPZ6+qHrXBsgmLXaDh1LTuP4XliApHkXGxFk12NmyxW8CbusmEg+GZUu Rvbq11lUpyi7jJY755Enap8qWgQKMMkm5QXlcvw8= From: "adrian.perl at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99576] [coroutines] destructor of a temporary called too early within co_await expression Date: Sun, 27 Nov 2022 14:24:06 +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: 10.2.1 X-Bugzilla-Keywords: C++-coroutines, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: adrian.perl at web dot de X-Bugzilla-Status: NEW 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=3D99576 --- Comment #9 from Adrian Perl --- Thanks for the advice. I hope you meant __builtin_trap() as I can't find a __builtin_abort() funct= ion. I have now written test applications for all relevant bug reports (99576, 100611, 101976, 101367). I also verified that it fixes 107288, but did not = add a test as it requires boost asio. Unfortunately I was wrong that the patch will fix 102217 and 101244. They u= se similar examples but also the ternary operator, which still leads to an inv= alid statement error when used in co_awaits. I will send the patch together with the testfiles as soon as the testsuite = has finished. Is it normal that it takes more than 6 hours to complete?=