From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 474DE3865479; Thu, 9 May 2024 18:36:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 474DE3865479 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715279771; bh=4YanZG9DzrtQK7zU8+ij+rCOUGqGtLglCign8fq5mAQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oNH7hKHl+tdkEkAnXoCESgaNSp6F/68DOym7WFg47rthfQsfuDdP8dKIcXPtfUUao N2t0Q7M/fkukNVUQ/XsrIT6UU8tMgUv3tjMj8IbPUw/FZc8Q0P78qkepYU5MYtaviG 6dWiOMlZm+m01ISDqKGrUSJSAiwZeqSHlJeYGfdc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/115003] exporting a symbol to outer scope with a name clash causes ICE Date: Thu, 09 May 2024 18:36: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: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 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=3D115003 --- Comment #3 from GCC Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:bc5afdf14ccf8375f7fb3de2be1121aaf550f8aa commit r15-349-gbc5afdf14ccf8375f7fb3de2be1121aaf550f8aa Author: Gaius Mulley Date: Thu May 9 19:35:20 2024 +0100 PR modula2/115003 exporting a symbol to outer scope with a name clash causes ICE An ICE will occur if an unknown symbol is exported and causes a name clash. The error mechanism attempts to find the scope of an unknown symbol. This patch adds a missing case clause to GetScope and returns NulSym if the scope is an unknown symbol. gcc/m2/ChangeLog: PR modula2/115003 * gm2-compiler/SymbolTable.mod (GetScope): Add UndefinedSym case clause and return NulSym. Signed-off-by: Gaius Mulley =