From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E3BE33858D3C; Mon, 22 Apr 2024 16:31:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3BE33858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713803519; bh=+WaUwD5zSHaPI4/0DQu6ZwIR7OJzMtiA29IvbIVkmUM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZtbsvPud94OhqX9GpUMXXd7ODUeuSewgDd+rdGx13V+WvrknNpXxAN+gZGlEc/rOD tSGwiVzRH2WZtNFgL451JU8L9I895r0XhVg84OT7wahhvph9BTnmwig13j/iYD2t8p gq7MlL/LXZxhReSFKxMEf5fERlgck7HuW5oUzDug= From: "gaius at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/114807] badpointer3.mod causes an ICE Date: Mon, 22 Apr 2024 16:31:58 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gaius at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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: 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=3D114807 --- Comment #2 from Gaius Mulley --- Created attachment 58009 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58009&action=3Dedit Proposed fix After the proposed patch fix is applied the cc1gm2 behaviour changes to: $ gm2 -g -c badpointer3.mod=20 badpointer3.mod:18:14: error: In procedure =E2=80=98foo=E2=80=99: 1st param= eter type failure between actual parameter type =E2=80=98Hello=E2=80=99 and the formal type = =E2=80=98s=E2=80=99 18 | testproc (Hello) | ^~~~~ badpointer3.mod:18:14: error: =E2=80=98Hello=E2=80=99 and =E2=80=98s=E2=80= =99 are incompatible as formal and actual procedure parameters=