From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5FB8C3971C41; Sun, 26 Apr 2020 19:32:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FB8C3971C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587929543; bh=a9d/bIsDZl6FwsOPVdlux1apG3OyfIMMcoIWUYQrRkE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F4tMhW500JQG4G0j7EmpDci4mGOjlTYc+9D1RDs8h/mrfzK9mg7jWvlekacWJFhit zwfkE30e8vfTPIPkcVeUBIVGYggRzOdfcTMQU4bU92o/eqp1UHxbBGXPCtpcfLysw2 yLTcU4/0pUOueCP9CowEIBTfRNgmnbYTKbQ2DdBE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94752] [coroutines] compiler ICE with coroutine with unnamed parameter Date: Sun, 26 Apr 2020 19:32:23 +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.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: iains at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 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: Sun, 26 Apr 2020 19:32:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94752 --- Comment #2 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:29f55115583a0dab6cbac749c4f0804fd88e9536 commit r10-7973-g29f55115583a0dab6cbac749c4f0804fd88e9536 Author: Iain Sandoe Date: Sun Apr 26 19:34:50 2020 +0100 coroutines: Do not assume parms are named [PR94752]. Parameters to user-defined coroutines might be unnamed. In that case, we must synthesize a name for the coroutine frame copy. gcc/cp/ChangeLog: 2020-04-26 Iain Sandoe PR c++/94752 * coroutines.cc (morph_fn_to_coro): Ensure that unnamed function params have a usable and distinct frame field name. gcc/testsuite/ChangeLog: 2020-04-26 Iain Sandoe PR c++/94752 * g++.dg/coroutines/pr94752.C: New test.=