From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 6F2593850206; Wed, 29 Jun 2022 15:00:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6F2593850206 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.92,231,1650960000"; d="scan'208";a="80714074" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 29 Jun 2022 07:00:49 -0800 IronPort-SDR: T0HuJ4Tr90awdz0rxijsindhQd9RTiFwZ7bvEb5L/EfoaUAaQE/7ZDzC07iD8AawA7IRjrE/HK s4KMuJk/oM3kPqCZK54cTsajI2DRykDnIwz30YEeNvx9bndxN1YZMO0Jge9DJ67Y39Kv/UGwkh Vc0phhzVvQBpyV4uG6lc2HniULRdc+c4zHCsnsiB8WnzAESRLAIs13XrfJwzQdLqat3wgdUnkh wF8GJ0URTP/r+ItbHSk7j2GuHU+sskGx2i+FcXoa++ex1071wadBDO3pacuIUVS/Y0CcqS3ymD +R0= Message-ID: Date: Wed, 29 Jun 2022 17:00:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] Fortran: improve error recovery for EXTENDS_TYPE_OF() [PR106121] Content-Language: en-US To: Harald Anlauf , fortran , gcc-patches References: From: Tobias Burnus In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-13.mgc.mentorg.com (139.181.222.13) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2022 15:00:56 -0000 On 28.06.22 22:36, Harald Anlauf via Gcc-patches wrote: > the simplification of EXTENDS_TYPE_OF() did not handle the > situation that one of its arguments were a CLASS variable > that was improperly declared. NULL pointer dereference. > > The fix is obvious. Steve found a similar solution, which > is why I added him as co-author. > > Regtested on x86_64-pc-linux-gnu. LGTM =E2=80=93 and I do note that Steven also okayed it in the PR. Thanks, Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955