From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cc-smtpout1.netcologne.de (cc-smtpout1.netcologne.de [IPv6:2001:4dd0:100:1062:25:2:0:1]) by sourceware.org (Postfix) with ESMTPS id 20EEF3858D33 for ; Sun, 8 Jan 2023 12:03:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 20EEF3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=netcologne.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=netcologne.de Received: from cc-smtpin3.netcologne.de (cc-smtpin3.netcologne.de [89.1.8.203]) by cc-smtpout1.netcologne.de (Postfix) with ESMTP id 8A89C12625; Sun, 8 Jan 2023 13:03:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=netcologne.de; s=nc1116a; t=1673179388; bh=8pPc8L6EO7AS/QJ5eYI/1FVIFNjCEPEylrczhJib6yY=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZbHggcF3YYTEojPhSFsygID1PLQ5c6NCUYgm2ttlB7tws004HXxHhnvuKha19aSnh wtOnxCQIlM3nQnzccryRpkx8gnvUBdDUq3nD7hf1g76mE9vQXkUqv/06dyCRT4tkBT ymWn3j7mHeLuN8P7kO1eDXHifb4VXQEj9gbG2abh+b0QrQSXE7nZt7kYQeHzb2ERYP QOP3ot4ezJgyhXG6r4XQNvkYY6GKXJplVv7F0EmP3yrhYUy97RVA3VVGuTQF7pDOV0 M1UkfR1D1VojdAe95l3ObaU5IGWpCr8BCcF6uwmJ6u93kMhiF3Aq3JP/cSUR+3lM47 KHRY2XAjcKH2A== Received: from [IPV6:2001:4dd7:6842:0:7285:c2ff:fe6c:992d] (2001-4dd7-6842-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de [IPv6:2001:4dd7:6842:0:7285:c2ff:fe6c:992d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by cc-smtpin3.netcologne.de (Postfix) with ESMTPSA id D282111DB9; Sun, 8 Jan 2023 13:03:04 +0100 (CET) Message-ID: <484fa25a-430a-017f-839e-cb57201ada84@netcologne.de> Date: Sun, 8 Jan 2023 13:03:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Fw: Re: [Patch, fortran] PR37336 (Finalization) - [F03] Finish derived-type finalization Content-Language: en-US To: Paul Richard Thomas Cc: Harald Anlauf , Jerry D , fortran References: <7ab973cd-f62e-28be-36e8-4e44252a4a38@gmx.de> <061aee5b-c27c-3a9f-419d-9893c2d744c4@netcologne.de> <78aafe8c-dcf9-55e6-50ce-c6289ea1f3fe@gmail.com> From: Thomas Koenig In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-NetCologne-Spam: L X-Rspamd-Queue-Id: D282111DB9 X-Spamd-Bar: / X-Rspamd-Action: no action X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Paul, > What causes the ICES? There were a few PRs along this line. Usually, it is the front-end pass inserting code which is illegal Fortran, and the later stages then asserting that it doesn't happen. Here are a few examples: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50690 (function elimination in OMP Workshare) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50564 (forall) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69154 (matmul in where) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69742 (in associate). If you want to do the finalization of function results via a front end pass, creating a variable and then assigning it from within these constructs can cause these kinds of problems. Best regards Thomas