From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B9ADE384AB52; Wed, 1 May 2024 14:16:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9ADE384AB52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714572997; bh=1h39Uo8OZ4IafDlnr0dFIMRZVv83ws8hgJXzy6tpDiM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CPFc46v8TpwQRQxr0zB86JkrRFpna8ndvbSTyYCJO0XZRT8vWNidBemlLAbgSo5EG oz1Uwz3COzRY34stF8jTjBSKGhqDZEACB66vQ9tl21a1ZAGO0NJVjGMGnZ+SUwozkk IsArA9N7CfEFm4uvtwDMtBX/uPmmccE4ZDavUapk= From: "albrecht.guendel at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114904] Bogus Warning [-Wreturn-type] in function with do-while loop Date: Wed, 01 May 2024 14:16:37 +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: 13.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: albrecht.guendel at web dot de 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114904 --- Comment #1 from Albi --- This "bug" can be closed and deleted. I am an idiot and i am sorry. 'continue' does not jump to the start of the loop, but to the next loop-condition-check, so in a do-while loop, it actually jumps to the botto= m. Man, after 20 years of c++ !!!=