From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D0BD33858C56; Tue, 12 Apr 2022 19:16:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D0BD33858C56 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103871] [11/12 Regression] co_await causes build error Date: Tue, 12 Apr 2022 19:16:50 +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: iains at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.3 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 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: Tue, 12 Apr 2022 19:16:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103871 --- Comment #10 from Iain Sandoe --- Despite investing some time in this, it seems that I cannot get a patch rea= dy for master / reviewed and back-ported in time (although I am hopeful to get= the fix sorted out in time for GCC-12) (I can confirm that my fix does still work for this - but there is just not enough time to process it through). ---- Looking at the test case and the diagnostics, it seems that PR98056 was lat= ent here and the fix in r12-618-g14ed21f8749ae359690d9c4a69ca38cc45d0d1b0 has simply revealed it. a workaround in the example might be: auto task =3D g(std::make_unique(std::vector{0L})); // ok co_await task;=