From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9AB553858D32; Fri, 31 Mar 2023 22:21:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9AB553858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680301295; bh=G60LGUcanYRTnZOuNkK9EnukxbyhzymK5EttHZA0Wgo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OY7+npHHzVN4dApYEOv8txCf6HbvDWxPdb/s3SsxWm8Qju1C/vhEH+y56SyBN8W/Z 3pR8IDPNUEMeyiBDAYX6oz/RY32+w/+sJ3nzi6MfpOUH5PVUjLkwzfik13rulYhPRy c5Y0d8lh1qUnIZLK+V6aTBOEMbZ2ENtwcS0Qvu6k= 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 22:21:35 +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 #5 from contact at thunderperfectwitchcraft dot org --- As mentioned, it isn't anymore: According to the linked Thread in gcc 13 a return value that contains a invalid instruction is generated on purpose if there is no return statement, forcing a crash. To my understanding, this is the only thing that can happen now.=