From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99E453858D37; Wed, 21 Sep 2022 13:40:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99E453858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663767634; bh=VIaXSsn9Gxx7v7ksr8wv9R6uPdgx80K0+GcSxmYT/2M=; h=From:To:Subject:Date:From; b=r1Uf1dbjrD4Nk68+RzGHr277iSWbU5P7M9qMh6PbwUF8cdJv8rca//dHmKciasO7z jUBQCodnIBfnX29mTI6HpWMhGCcO3hhG0vF2h6O6dd8fzGknpJQi+5rZvoiq2IcDQd Cn47+5A3G8+vE0ns6eADWoybIy2J/Eje2SacGhEU= From: "klaus.doldinger64 at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106997] New: Use coroutines on avr-gcc Date: Wed, 21 Sep 2022 13:40:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: klaus.doldinger64 at googlemail 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D106997 Bug ID: 106997 Summary: Use coroutines on avr-gcc Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: klaus.doldinger64 at googlemail dot com Target Milestone: --- I tried to use coroutines with avr-gcc (13.0.0) for the AVR target. I manag= ed to include the coroutine-header and to write a very simple generator using = the example from cppreference. It compiles well, but then I get undefined symbols: 1) new and delete operator-functions 2) f(f()::f().Frame*) Therefore two question arise here: a) is it possible to use coroutines without head-allocation? E.g. define so= me global storage for the state of the coroutine? b) if a) can be fullfilled, what is 2) supposed to do?=