From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 25181385BF83; Mon, 6 Apr 2020 18:05:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25181385BF83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586196334; bh=gDU8zi1v0KjVDynfkCwDYcVAkfE0TKOEQKdtp2fioU8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vCwaXy3PQAWkCHYhzfjn5M5piGC2xAbxrHjZp/wjXpatsTSzJFIik8eobvNvsJmcX sS7x183Uq1p9Zzaz1AmgVsKld4qUHznzSLCTRdKVRM5tbtpn8AqNZrgatwUih8a/4A 1wutOuTtydMtJzOEa7uu4K9LpFojS/VUy9Dz9kT4= From: "egor_suvorov at mail dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/93642] [Coroutines] internal compiler error: in expand_expr_addr_expr_1, at expr.c:8070 using co_return Date: Mon, 06 Apr 2020 18:05:33 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: egor_suvorov at mail dot ru 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: 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, 06 Apr 2020 18:05:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93642 Egor Suvorov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egor_suvorov at mail dot ru --- Comment #3 from Egor Suvorov --- It looks like GCC chokes if it has to call unusual constructor of `promise`. E.g. if `get_return_object()` returns `int` and there is `promise(int)` constructor (with no `coroutine_handle` in sight), same error occurs. However, if I return `promise` from `get_return_object()` and provide `promise(const promise&) {}`, GCC does not crash.=