From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7B8D13890433; Mon, 22 Jun 2020 19:30:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B8D13890433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592854227; bh=BkK2KFNbzf4iNau3HmoZfkyPHDCOhCWlzxjdKP4/QqY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j17KtcQ8kuGjFRzOnLiSDRduE34W8yc+iMpblfixSShG/XcyaGxEpoIa2UJSE8+Tr Eak4WZZLje3marvt6Ve4TvVe6yKpatdMeGIBeeBg5uOe4FIt/0S8h0vSaXw9abv+93 le9Zw0ggvhsWHL9S755AjOdoIP+zYXEfdTx2pxjM= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95707] ICE in finish_equivalences, at fortran/trans-common.c:1319 Date: Mon, 22 Jun 2020 19:30:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: anlauf 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 19:30:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95707 --- Comment #4 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:4dd2fd9c4350529947fffc6bf257b5e22379554b commit r10-8341-g4dd2fd9c4350529947fffc6bf257b5e22379554b Author: Harald Anlauf Date: Sat Jun 20 16:15:16 2020 +0200 PR fortran/95707 - ICE in finish_equivalences, at fortran/trans-common.c:1319 With submodules and equivalence declarations, name mangling may result = in long internal symbols overflowing internal buffers. We now check that we do not exceed the enlarged buffer sizes. gcc/fortran/ PR fortran/95707 * gfortran.h (gfc_common_head): Enlarge buffer. * trans-common.c (gfc_sym_mangled_common_id): Enlarge temporary buffers, and add check on length on mangled name to prevent overflow. (cherry picked from commit 3345e74299687de6144b87c0632018cafd4ccf3b)=