From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id 5398A3858D20; Mon, 29 Jan 2024 06:51:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5398A3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5398A3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706511075; cv=none; b=iAyK18pmHt82CXHK9FVSgOwRReG4hP0oaILaeZiMYppXYg2u748l4rvDUe+GpNsm9CrMo2q/vGXRKm/tipQ1ZQTM4bJ4dCPuzzq/L5l1B36aBAbz4/86p1Y8kq9zCwy6cTJQAgAAAJZ+k+3vFi6mf1QnaYa4BtadSUdS609MYa0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706511075; c=relaxed/simple; bh=0j8edAEKeiHcx6KyJsHh+VQqYADNVwJRx3arEZJoDlU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=cBn4ndJS1AzhkS1F/+hmcidol9XGnI5oAf6ukBSoH/mk89BTopgnxdT7JWWAJcS6LjvzUF+ZfW7ze76l1SZN+lI9Ld0r18Lu3kp7bpLyYYb7aDH/QcpqTuWYdSPsf2ynwUsR6C98Eqy7eXMaPlOQasy8AUl1LTCaSheHTtdUIAY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a35d0764076so32147066b.1; Sun, 28 Jan 2024 22:51:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706511071; x=1707115871; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=OlhsiFm+O/wOcyqHeMZ+5cFyOoLl38Uzubw3HHH563k=; b=Xq9MX6p/LrUwFVbC9FFfcU61xGjX1yjvGfnkPXXoWj7QFlxh2zotWvy2RPktDDDF/n IiLe2MzNDkohqijsdkPfsGeyqZ71M8PbyXmGFsYdm3QyNQcNBQkaYUgj7R799S6uP82a xKmUpzivthxSi6G5zgkBgHaRRvWnvieTqRG6ElEadHdI95hOsxgRESLNWfVCGkVitFyR NJvW+tu+hHnMbfI51uh10meHTMiwDwpKQdKPMbIJilb3vfc8ujMFAs4V6XPTwDmzwjLj 2o/ocM+WVaz0UjrU86TPQ73StSyPAp+INVdmC5FhNYckl3iKScns2ge9lRxXkt2zPzD6 tjuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706511071; x=1707115871; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OlhsiFm+O/wOcyqHeMZ+5cFyOoLl38Uzubw3HHH563k=; b=YwbxfbrxMTbpwoIbAN9TEwiwYKdoX0JWw0bQOc+r79IsUjT/zk1FZjzUGv7zysnRnO F7jLDyRMoIRI/FpzngN7kU4GVwKkJ4qTFPON4R6rKJmZe0bpP5TuzWOQS5Gzn0+D4/SZ X/S/VJHqeleNFiZ4PHCcKVY4lL4MveMRfB7qbnbZ2IgdbOW7GnMLMVIiQkzTC9Cfu45n yf1ebr8tPdiNIB4Q+5eaz1rMi8tyDokT9LZCtj8JiQ8tecVeVfUzXcPaS3BY72DazETV 3sKs6XIFcE24SUoS4f135aS18mPhDidWXIJ7olDpE67bhTdEj/ltCdOUuTXfYZmdbmGl kw8g== X-Gm-Message-State: AOJu0YzoX4v2eYj5ZuUFqnobTPMWoT7yufHl/ThKQBVy78sOLQqnRaLJ uyJ9NhCi+fbRIBQu9741nTf1VcEqoCjLllyg6u7tC4ff1Xm2sTjw X-Google-Smtp-Source: AGHT+IG10dikxlqHy2oJxFWGn/0vX87ijkM2GdAsv1W2oDPCeaNRuR7G80Daue/1N8/YIKz1R/Uiqw== X-Received: by 2002:a17:906:bc8b:b0:a30:ab56:b5c9 with SMTP id lv11-20020a170906bc8b00b00a30ab56b5c9mr3312706ejb.54.1706511070781; Sun, 28 Jan 2024 22:51:10 -0800 (PST) Received: from [127.0.0.1] (80-110-214-113.static.upcbusiness.at. [80.110.214.113]) by smtp.gmail.com with ESMTPSA id rf14-20020a1709076a0e00b00a35ee212d23sm470ejc.207.2024.01.28.22.51.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Jan 2024 22:51:10 -0800 (PST) Date: Mon, 29 Jan 2024 07:51:06 +0100 From: rep.dot.nop@gmail.com To: sgk@troutmask.apl.washington.edu, Steve Kargl , Harald Anlauf CC: Mikael Morin , fortran , gcc-patches Subject: =?US-ASCII?Q?Re=3A_=5BPATCH=5D_Fortran=3A_use_name_of_array_co?= =?US-ASCII?Q?mponent_in_runtime_error_message_=5BPR30802=5D?= In-Reply-To: References: <67c77b44-79cb-4029-b59a-c92dfad15fa9@orange.fr> <86888cc5-3650-4044-b67d-89aab1631753@gmx.de> Message-ID: <9C66B029-5111-488F-B9B3-9CA67684A5BF@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: On 28 January 2024 22:43:37 CET, Steve Kargl wrote: >On Sun, Jan 28, 2024 at 08:56:24PM +0100, Harald Anlauf wrote: >>=20 >> Am 28=2E01=2E24 um 12:39 schrieb Mikael Morin: >> > Le 24/01/2024 =C3=A0 22:39, Harald Anlauf a =C3=A9crit=C2=A0: >> > > Dear all, >> > >=20 >> > > this patch is actually only a followup fix to generate the proper n= ame >> > > of an array reference in derived-type components for the runtime er= ror >> > > message generated for the bounds-checking code=2E=C2=A0 Without the= proper >> > > part ref, not only a user may get confused: I was, too=2E=2E=2E >> > >=20 >> > > The testcase is compile-only, as it is only important to check the >> > > strings used in the error messages=2E >> > >=20 >> > > Regtested on x86_64-pc-linux-gnu=2E=C2=A0 OK for mainline? >> > >=20 >> >=20 >> > the change proper looks good, and is an improvement=2E=C2=A0 But I'm = a little >> > concerned by the production of references like in the test x1%vv%z wh= ich >> > could be confusing and is strictly speaking invalid fortran (multiple >> > non-scalar components)=2E=C2=A0 Did you consider generating x1%vv(?,?= )%zz or >> > x1%vv(=2E=2E=2E)%z or similar? >>=20 >> yes, that seems very reasonable, given that this is what NAG does=2E >>=20 >> We also have spurious %_data in some error messages that I'll try >> to get rid off=2E >>=20 > >I haven't looked at the patch, but sometimes (if not always) things >like _data are marked with attr=2Eartificial=2E You might see if this >will help with suppressing spurious messages=2E > Reminds me of https://inbox=2Esourceware=2Eorg/fortran/20211114231748=2E376086cd@nbbrfq/ Maybe thats missing, i did not apply that yet, did i? HTH