From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C94C3858D28; Fri, 31 Mar 2023 23:00:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C94C3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680303648; bh=7skx5mgHzLS1HXt7GUgC55kYY4aH796sH8Gl6wu5IE4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qdoIFjn0FwQB1PvOra+S97jLH6a0js33/ld7m3kC6z9D5S3DseXhxZ4h2anQUgoW7 RxI/1xFUUF+cj9eus9N+hOiV71J4rQ0g2gcITj6E4JyGLzNb4SToz6ALZsTw6Y4N7I N4FwpauPz5LcENl1txhMc2OYZGHdDPC/bSp+qEZs= From: "contact at thunderperfectwitchcraft dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109364] Missing return statement in a non void function gives only a warning but produces a forced crash. Date: Fri, 31 Mar 2023 23:00:48 +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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: contact at thunderperfectwitchcraft dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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=3D109364 --- Comment #10 from contact at thunderperfectwitchcraft dot org --- Now I get it, thanks to you both. Why not additionally make the -Werror=3Dreturn-type option to default? Woul= d make it easier to detect and solve the issue, compared to a crashing binary.=