From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 832B2384AB57; Mon, 22 Apr 2024 19:15:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 832B2384AB57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713813310; bh=YtSsd/H5HtdzH/Ije0bSN85QOOXPZteUnWOfMkWIig0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=O1gVNEOXPf0uETnYQSdXdI/1WcJ1UeyU62FjkwE8zpGvaivL/aQsAhMZkX15nLKVQ cryA4djSnQbB60/HoeSHFE2BMUERqVxujqq7mg4/FM8RM5p6AHjAUpwoKFO5hM0WS+ pv8cuH6WCRxGjrjWaOiq0Gn/uIbIybK+s/5gFdMY= From: "gaius at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/114811] iso/fail/badexpression.mod and iso/fail/badexpression2.mod ICE Date: Mon, 22 Apr 2024 19:15:10 +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: UNCONFIRMED 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=3D114811 --- Comment #1 from Gaius Mulley --- Created attachment 58012 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58012&action=3Dedit Proposed fix This patch fixes gm2-torture.exp to detect internal compiler error as a negative result and also provides a bug fix to M2GenGCC.mod:FoldBinarySet.= =20 FoldBinarySet must only check types if the operands have been resolved. This ICE is seen when a string is attempted t= o be included into a set. See gcc/testsuite/gm2/iso/fail/badexpression2.mod.=