From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 383C9386186E; Fri, 4 Dec 2020 14:13:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 383C9386186E From: "max at duempel dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96749] [coroutines] unexpected 'warning: statement has no effect [-Wunused-value]' Date: Fri, 04 Dec 2020 14:13:28 +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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: max at duempel dot org 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 attachments.created 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: Fri, 04 Dec 2020 14:13:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96749 Max Kellermann changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |max at duempel dot org --- Comment #2 from Max Kellermann --- Created attachment 49681 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49681&action=3Dedit Another variant of the bug I confirm this bug with "gcc version 10.2.0 (Debian 10.2.0-19)", and I have found another variant of it; in my sample source, using a "struct" return t= ype triggers the warning, but built-in types do not.=