From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 280873858D38; Thu, 26 Jan 2023 16:24:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 280873858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674750280; bh=OrzA2TZqC1MgzU3IZS3Aw4wuWUbDwybfdS5sp4Yunto=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uTYIiL7Y63Yi7Y8u8qOTJUW0QmkkpYTZDwegX/6ysg5MfdzeWF22HQAIvDvytneKP b0EBcljsxXEESlLJ5z6VBgEGA9+vbCwO+4vGRdqCo8n6I8650BWAqGsLKe74Ju/BwN jk28bIkm6Lp5MZjQNsAdI2iRj9MHGJ9iYX/Rp3gk= From: "gaius at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/108551] gcc/m2/gm2-libs-pim/Termbase.mod:128:1: error: control reaches end of non-void function [-Werror=return-type] Date: Thu, 26 Jan 2023 16:24:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: build, diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: gaius at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108551 Gaius Mulley changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gaius at gcc dot gnu.org --- Comment #5 from Gaius Mulley --- Created attachment 54354 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54354&action=3Dedit Potential bug fix for missing return 0 in main Thanks for the bug report. The -Wreturn-type highlighted a bug in the scaf= fold main (missing a RETURN 0 after the exception handling in main) which I think is fixed in the following patch. Also contained are two deja= gnu test cases (pass/fail) based on the test case above:=